HLE: skip the title's Bink movies on request (VICTORY_SKIP_BINK, play.ps1 -SkipIntro) #402
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!402
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-402"
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?
@Jesper-Andersson on GitHub · 2026-11-27 00:17 UTC · original
Jesper-Andersson:worktree-skip-bink→main· +366 −0 · 5 files · 1 commits · openEvery test run starts with the logos and the intro movie (450 frames), and on slower cards that is long before the menus. There is no way to skip them. This is a port of fxceless/victory-fork#613 (code, tests and design by its author, in their words "idea from xcl-dev/xcl#1053, no code taken from it"); both repositories are GPL-3.0.
Change
crates/victory-hle/src/bink.rs(from #613, unchanged): the title's ownBink2Scarlett.dllstill loads and opens every movie. With the switch, the title's imports of the exports a player loop calls on an open movie (BinkWait,BinkShouldSkip,BinkDoFrame,BinkDoFrameAsync[Multi|Wait],BinkNextFrame,BinkGoto,BinkClose) are bound to wrappers (SkipMovies, a resolver aroundWithTitleDlls). On the first such call for a movie its looping flag is read; a skipped movie is put on its last frame and nothing more is decoded, so the title's own end-of-movie check ends it at once. Other movies and every other export go straight to the DLL.apps/victory/src/run.rs:SkipMoviesaround the resolver for the imports bound at start and for DLLs the title loads later.scripts/play.ps1:-SkipIntrosetsVICTORY_SKIP_BINK=1.README.md: the switch, in "Other switches".VICTORY_SKIP_BINK=1skips the movies that play once (logos, intro);allthe looping ones too (menu backgrounds stay dark). Unset or0: nothing changes.Where it does nothing
wrap_withreturns the address unchanged; tested).GetProcAddressare not wrapped (this title imports them).Measured
RTX 2070 SUPER 8 GB (driver 621.14), Ryzen 7 5800X, 32 GB, Windows 11, diag build,
scripts\play.ps1defaults, Series S + DLSS (#203 merged locally for DLSS). Measured with this change on main126acb3, before it was rebased onto014d52d; the code is the same.-SkipIntroDLSS: started)Bink movie ... skip=truelines)One run each. Known: a short bright green flash where the intro is skipped, most likely the title drawing the movie's never-decoded (all-zero YUV) frame once before its end-of-movie check.
Checks
014d52d:cargo test -p victory-hle --lib --locked bink: 2 passed (mode_values,skips_movies_and_passes_the_rest_through);cargo check -p victory --locked: okcargo clippy -p victory-hle --lib --tests --locked: nothing inbink.rs. With-D warningsit doesn't get through main itself, for reasons outside this change (victory-gpulist.rstotalsnever used,watch.rsneedless&mut,victory-loaderdescriptor_sites.rstransmutes in tests).cargo xtask policy: ok (pre-commit hook)-SkipIntroto the menus (above), no crash. Also built and run, with the switch off, on014d52d+ #203: the intro plays as before.Not checked
VICTORY_SKIP_BINK=all.Related
BinkWait/BinkGotoduring the opening cutscene): withVICTORY_SKIP_BINK=1a skipped movie'sBinkWait/BinkGotodon't reach the DLL, so this may be a workaround there. Not tested: the crash is on AMD and doesn't happen on this PC.This change was made with AI assistance (Claude Code).
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.