Skip to content

Allow timed input holds in release benchmarks - #1236

Open
UwUCammie wants to merge 2 commits into
fxceless:mainfrom
UwUCammie:test/hold-input-for-first-room
Open

UwUCammie wants to merge 2 commits into
fxceless:mainfrom
UwUCammie:test/hold-input-for-first-room

Conversation

@UwUCammie

Copy link
Copy Markdown

The 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:hold syntax from Marvisak/VIctory#2205, keeping the original commit credit. 50:Enter:4.4 holds Enter for 4.4 seconds at input time 50. Two-field entries keep their 0.2-second duration. Building with --features victory-hle/benchmark-input enables 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.4 entry 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 --locked passed with default and all features. Route and comparison timings

fiestorra and others added 2 commits November 26, 2026 01:16
The 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:key: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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants