PROJECT AT A GLANCE
My contribution
- Separated a C++17 simulation core from the CRYENGINE 5.7 entity and rendering integration.
- Built active-frontier fire spread, wind and smoke fields, ember ignition, civilian shelter routing and cascading utility failures.
- Added CMake/CTest verification, a warmed-step allocation audit, a benchmark CLI and bounded IRenderAuxGeom debug views.
A standalone simulation core inside a CRYENGINE prototype
ASHFALL models a fire incident on a terrain grid: local wind and slope influence spread, fuel and humidity govern burn behaviour, smoke and embers extend the hazard, civilians choose safer routes, and failures can cascade through buildings, power and water links. The CRYENGINE component owns the fixed 0.25-second update loop and the debug views. The same simulation sources build and run separately through CMake and CTest.
The checked-in scene is still a systems prototype. Its characters, vehicle and drone are represented by tactical state and debug markers; this is not a finished, asset-complete wildfire game.
Four coupled systems
| System | Implementation boundary |
|---|---|
| Terrain, wind and fire frontier | Flat row-major cell storage; deduplicated active/candidate lists; spread probability depends on wind alignment, slope, fuel and target humidity. |
| Smoke, embers and hazard fields | Three smoke layers advect on the grid. Capped gameplay embers can request spot ignition. Hazard fields feed current and 30/60-second risk estimates. |
| Civilian decisions and shelter routes | Agent utility decisions select evacuation, shelter, family search or responder-following. Four pre-sized Dijkstra cost fields route around hazards. |
| Buildings, utilities and engine views | Fire damages integrity and can break utility links; power failure can reduce water pressure. The engine adapter draws bounded fire, wind, civilian and network overlays with IRenderAuxGeom. |
The fire-rate function combines clamped wind alignment, terrain rise, fuel and humidity. Fire works from a sparse active frontier; wind, smoke and hazard layers still scan dense grid data. Shelter paths rebuild on a one-second simulation cadence.
Standalone verification
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DASHFALL_WARNINGS_AS_ERRORS=ON, cmake --build build --parallel, and ctest --test-dir build --output-on-failure compile the actual core without CRYENGINE binaries. The five scenario groups cover:
- spread-rate ordering for downwind/upwind and uphill/downhill targets;
- humidity-dependent fuel use and the burned-out transition;
- identical end-state checksums for repeated deterministic inputs;
- no calls to the instrumented global
operator newacross sixteen measured 64 × 64 steps after twenty warm-up steps, including two-worker wind work and shelter-route refreshes (one bounded scenario, not a universal guarantee); - hazard-driven evacuation, building collapse, water-link failure, and power/water cascade.
The GitHub Actions workflow runs C++17 builds with GCC and Clang on Ubuntu and MSVC on Windows, with compiler warnings treated as errors, CTest and a tracked-binary audit. Run #7 on main passed all three jobs. The CRYENGINE plugin is not built by those standalone jobs.
Measured local benchmark
Each row records 64 warm-up steps followed by 1,000 timed full-core steps at a fixed 0.25-second simulation delta. The run includes two wind rebuilds, fire and ember propagation, three-layer smoke, hazards, civilian decisions/routes and infrastructure updates. Wind uses two persistent workers.
| Grid | Mean (ms/step) | P95 (ms/step) | Max (ms/step) | Reserved core vectors (MiB) |
|---|---|---|---|---|
| 64 × 64 | 1.672 | 4.174 | 6.638 | 0.588 |
| 128 × 128 | 3.947 | 11.249 | 16.211 | 2.335 |
| 256 × 256 | 12.881 | 47.990 | 113.085 | 9.319 |
Measured with MSVC 19.51 Release on Windows, Intel64 Family 6 Model 191 Stepping 5, with eight hardware threads reported. These are local core timings, not CRYENGINE frame measurements. The full table, checksums and memory accounting are in the benchmark report.
What the measurements do not establish
The memory figures report reserved capacity for the core’s counted vectors after each run; they exclude civilians, embers, infrastructure objects where not counted, allocator metadata, thread stacks and engine state. The allocation test checks one warmed workload and does not prove that every future update path or engine callback is allocation-free.
The fire, smoke and hazard rules are gameplay abstractions. The current evidence does not establish physical wildfire accuracy, a rendered frame budget, response-unit performance or CRYENGINE plugin compilation. Smoke remains a dense-grid pass, and the current level does not include authored civilian or vehicle assets. Those boundaries are part of the prototype’s engineering record, not results to infer from the diagram.
Build the source
Open the standalone build, systems notes, project status, benchmark report, or the full source repository.
Evidence record
The full source repository is private. This case study publishes a source excerpt from the stated revision and the local verification record.Verification notes and measurements on this page are creator-recorded and have not been independently reproduced by a third party.
System diagrams on this page describe documented capabilities. Profile and Source state explicitly which supporting materials are available.
Continue exploring
Browse the project archive or run an engineering experiment.
