Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: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 timings