Allow timed input holds in release benchmarks #1236
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1236
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1236"
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?
@UwUCammie on GitHub · 2026-11-26 01:22 UTC · original
UwUCammie:test/hold-input-for-first-room→main· +100 −36 · 3 files · 2 commits · openThe first-room benchmark used to spend most of each launch in the opening cutscene. A normal Enter tap lasts 0.2 seconds. Holding the same button long enough skips the scene, so a release benchmark can reach the room earlier.
This ports the
at:key:holdsyntax from Marvisak/VIctory#2205, keeping the original commit credit.50:Enter:4.4holds Enter for 4.4 seconds at input time 50. Two-field entries keep their 0.2-second duration. Building with--features victory-hle/benchmark-inputenables scripted input on its own. The hold check also avoids adding two potentially large durations.On a Ryzen 7 9700X and RX 7900 XT under Wine 11.22 / RADV 26.3.1, ordinary taps still showed the cutscene at 100 seconds. A hold on the same binary using overlapping short taps reached the room by 80 seconds. I then checked the single
50:Enter:4.4entry on a release build with this change. The prologue transition was visible at 65 seconds and the character and courtyard at 80.Both input regressions passed, including hold boundaries and the original tap duration.
cargo check -p victory-hle --lockedpassed with default and all features. Route and comparison timingsThe scripted keys held each key for 0.2 s with no way to change it. A screen that samples its input more slowly than that ignores the key, and the run looks exactly like a screen that ignores input - which is what cost me a morning: I concluded the setup wizard took no input at all, when the operator advanced the same screen by hand. An entry may now carry its hold: `at🔑hold`, in seconds, 0.2 when it does not. The parse is a function of its own so it can be tested; the test pins the default, an explicit hold, and a hold that does not parse (the key is kept, because the run matters more than the exact timing). No behaviour changes for an existing VICTORY_KEYS string.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.