RFC: Deterministic world-frame GameInput replay & traversal regression loop over frametime.rs #368
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX#368
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Vladimir-Human on GitHub · 2026-11-26 13:18 UTC · original
AnyXboxXalready captures valuable per-frame CSV timings (frametime.rs) and host memory pressure (ramline.rs) and integrates PR batches cleanly, yet traversal-specific streaming dips (sudden low-FPS drops during area transitions and long-session streaming issues such as #336) only appear during sustained world movement and are costly to A/B manually after large merges.We wanted to propose adding a lightweight, opt-in deterministic
world_frameGameInputreplay + gated A/B & autonomous optimization loop, built around two principles that avoid common pitfalls:world_frame-indexed HLEGameInputreplay (VICTORY_INPUT_RECORD/VICTORY_INPUT_REPLAY): Instead of wall-clockVICTORY_KEYS(which drifts with FPS) or fragile title-build memory teleports, recording fullPadState(analog sticks, triggers, buttons) +KeyStatekeyed byworld_frame()(starting at first>= 500-draw frame) pauses naturally through menus/loading and replays the exact same route whether FPS doubles or dips.frametime.rs/ramline.rs+ 6 anti-cheat gates: Opt-inVICTORY_BENCH_OUT+VICTORY_BENCH_EXIT_FRAMESoutputsframe_ms(median, p95, p99, 1% low),draws,zero_draw_world_frames,black_frames,device_removed, DXGI VRAM + Win32 commit peaks, andinput_script_sha256. An outer--mode ab/--mode looprunner can then automate post-merge PR checks or agent optimization passes (experiments.jsonltracking dead ends) while rejecting draw-skipping shortcuts, visual blackouts/PNG drift, TDRs, and VRAM/RAM regressions.Complete, independently audited reference implementations are already open in:
https://github.com/fxceless/victory-fork/pull/1302(Rustbench.rs+gameinput_script.rs+cargo xtask bench-loop)https://github.com/PastiiJay/klbf-lab/pull/78(pure-stdlib Pythontools/bench_loop.py)If helpful for testing batches like #345 / #347 / #350 / #354 / #357 or catching traversal regressions in CI/local A/B runs, we would be happy to port this cleanly onto
AnyXboxX'sframetime.rsandramline.rs!@Vladimir-Human on GitHub · 2026-11-26 19:19 UTC · original
Note after #409 (
37d4686):third_party/victorymoved from Neptune (frametime.rs) to the combinedavatarmanz + cool_foxbase (timeline/victory replay). The matching RFC targeting that exactavatarmanzbase is atavatarmanz/VIctory-7900XTX#252.