aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/control_resources.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 02:25:58 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 02:25:58 +0300
commitd92cde8b7209b83572aeabd5dab657149ed78d99 (patch)
tree2f29d6872ff2f3d7466308c5142cd0bff63b93b0 /crates/fparkan-runtime/src/control_resources.rs
parentfd0c4eb23337953895ec3b7ac23178b495128930 (diff)
downloadfparkan-d92cde8b7209b83572aeabd5dab657149ed78d99.tar.xz
fparkan-d92cde8b7209b83572aeabd5dab657149ed78d99.zip
feat(diagnostics): count unit motion gaps by object
Track temporary-controller updates and frame time discarded at waypoint boundaries for each object slot, generation and original TMA ID. Preserve completed/dead object records, expose them in --sim-report, and print the same counters when the game window closes. Movement and RNG decisions are unchanged. A bounded Ghidra inspection identifies Go at Behavior.dll RVA 0x2b670 and the MWalker empty-state helper at 0x3dd80. Restoring the MWalker/Control handoff remains open; no fixed-step or remainder-carry rule is substituted for native behavior. Document this explicit stub and bind the addresses to the verified GOG module hash. The licensed stock AutoDemo test first failed with empty observations and now reports actual controller updates and nonzero discarded time. A normal 91-second window run also emits per-generation totals after closure. All 29 stock --sim-report 900 runs preserve the preceding commit's world and combat summaries. At 60 Hz, AutoDemo's largest recorded loss for a single object lifetime is 492516 us; losses are observations of FParkan, not original-game timings. Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; focused unit and ignored licensed-stock tests; stock AutoDemo window; all 29 mission coverage runs. The native movement solver and original chronology are not accepted by this diagnostic change.
Diffstat (limited to 'crates/fparkan-runtime/src/control_resources.rs')
0 files changed, 0 insertions, 0 deletions