Input: scripted keys from the world's first frame (VICTORY_KEYS_FROM=world) #1098
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1098"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:15:13Z.
Summary
VICTORY_KEYStimes count from when input starts. Boot and save loading take a different time on each run, so the same script walks a different path each run. WithVICTORY_KEYS_FROM=world, the times count from the first presented frame of 500 or more draws instead, the same testVICTORY_CAPTURE_WORLDuses. No scripted key is pressed before that frame. Off unless set.VICTORY_KEYS_FILEis not held back, because a driver (such asbench.ps1) uses it to get through the menus.Changes
victory-gpu:world_since(), set once at the present that ends the first such frame. Cost: one atomic swap per present, in every build. It logsthe world: the first frame of 500 draws or more.victory-hle(gameinput.rs):script_base()picks whatVICTORY_KEYScounts from.docs/README-fxceless.md: one row in the table of switches.Checked
keys_from_the_world,a_frame_of_500_draws_is_the_world.cargo test -p victory-hle --lib -- gameinput: 27 passed.cargo clippy -p victory-gpu -p victory-hle --all-targets(with and without--all-features,-D warnings) passes for this change. main has three lints of its own that fail first:manual_is_multiple_ofin shadow.rs and descriptor.rs, andsome_filterin gameinput.rs:1372.scripted keys count from the world's first frameat the start andthe world: the first frame of 500 draws or more frames=1435543 s later.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:15:37Z.
Used by #1099:
bench.ps1 -Routepasses the route asVICTORY_KEYSwithVICTORY_KEYS_FROM=world.