Input: scripted keys from the world's first frame (VICTORY_KEYS_FROM=world) #1098
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1098
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ballsimulation on GitHub · 2026-11-28 13:15 UTC · original
ballsimulation:input/keys-from-world→main· +87 −10 · 4 files · 1 commits · merged 2026-11-29 08:16 UTCSummary
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
@ballsimulation on GitHub · 2026-11-28 13:15 UTC · original
Used by #1099:
bench.ps1 -Routepasses the route asVICTORY_KEYSwithVICTORY_KEYS_FROM=world.