RFC: Two-speed closed optimization loop pairing victory replay with deterministic GameInput traversal #252
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#252
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
VIctory-7900XTXalready has one of the strongest fast-iteration tools in the project:victory replay(docs/replay.md+crates/victory-gpu/src/replay/play/pixel.rs), which replays a captured frame offline in seconds with per-list/command GPU timings and pixel verification.Where we think an automated loop can complement
victory replaynicely is closing the gap for CPU/memory/streaming bottlenecks that single-frame replay intentionally excludes (multi-minute traversal,watch.rsremaps,pool/shadowRAM commit growth#234/#251, and live VRAM LRU/mip-clamp pressure).Two-speed closed optimization loop (RFC)
--fast-cmd): Runvictory replay <capture> --compare(plus pixel diff +cargo test/xtask policy) as a fast pre-screen before touching live runs.world_frame-indexedGameInputstarting at the first>= 500-draw frame, so loading screens pause automatically and 5 FPS -> 60 FPS improvements never desync inputs), run interleaved A/B passes over 1–3 saves (VICTORY_BENCH_OUT,VICTORY_BENCH_WARMUP, auto-exit afterNworld frames), and feed structured bottleneck telemetry +experiments.jsonldead-end history back into any coding agent (--agent-cmd).device_removed/ crash exit codes,avg_drawswithin ±15% of baseline, zero black/zero-draw world frames + optional PNG luma/MAE parity, and non-regression caps on 1% low FPS, DXGI VRAM, and Win32 private RAM commit.We built and tested full working reference implementations (0 new third-party dependencies,
Cargo.lockuntouched) in:https://github.com/fxceless/victory-fork/pull/1302(bench.rs+gameinput_script.rs+ pure-Rustcargo xtask bench-loop)https://github.com/PastiiJay/klbf-lab/pull/78(companiontools/bench_loop.pyharness)If maintainers want this alongside #180 / #205 / #212, we would be happy to port
bench.rs+gameinput_script.rs+xtask bench-loopcleanly intoVIctory-7900XTXwired tovictory replay --compareas the--fast-cmdgate!