Allow timed input holds in release benchmarks #1236

Open
github-bot wants to merge 2 commits from github-bot/gh-1236 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-26 01:22 UTC · original
UwUCammie:test/hold-input-for-first-room → main · +100 −36 · 3 files · 2 commits · open

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

**@⁠UwUCammie** on GitHub · 2026-11-26 01:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/1236) `UwUCammie:test/hold-input-for-first-room` → `main` · +100 −36 · 3 files · 2 commits · open 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](https://github.com/UwUCammie/victory-amd/blob/2e38d86/benchmarks/README.md#shorter-first-room-warm-up)
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🔑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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:07 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1236/head:github-bot/gh-1236'
git switch 'github-bot/gh-1236'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1236'
git switch 'github-bot/gh-1236'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1236'
git switch 'github-bot/gh-1236'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1236'
git switch 'main'
git merge --squash 'github-bot/gh-1236'
git switch 'main'
git merge --ff-only 'github-bot/gh-1236'
git switch 'main'
git merge 'github-bot/gh-1236'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.