loader: opt-in VICTORY_SKIP_MOVIES (open|end|fast) skips Bink movies #77

Open
github-bot wants to merge 1 commit from github-bot/gh-77 into win10-test AGit
Owner

@⁠zocram4cc on GitHub · 2026-11-26 13:02 UTC · original
zocram4cc:up/skip-movies → win10-test · +494 −2 · 4 files · 1 commits · open

Opt-in VICTORY_SKIP_MOVIES=open|end|fast skips the title's opening Bink movies (bink2scarlett.dll), so test runs reach the game sooner. Off by default: unset, empty or 0 changes nothing; an unknown value is logged and ignored.

  • open: BinkOpenWithOptions fails, as Bink does for a file it cannot open; the DLL is not called.
  • end: movies open normally; the first BinkNextFrame seeks to the last frame, so each movie ends on its next frame. Later calls go to the DLL.
  • fast: until the last frame, BinkWait reports the next frame as due and BinkShouldSkip reports playback as behind, so the title decodes without frame-rate waits.

Audio, threads, frame buffers, pause and close stay with the DLL; no title code is patched. The switch has a README row.

Patch by Yz.

Unit tests are included in crates/victory-loader/src/movies.rs (value parsing, per-strategy bindings, call sequences). Not run under Proton here.

Windows untested by us.

AI-assisted: the port and this text were drafted with an AI coding assistant.

**@⁠zocram4cc** on GitHub · 2026-11-26 13:02 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/77) `zocram4cc:up/skip-movies` → `win10-test` · +494 −2 · 4 files · 1 commits · open Opt-in `VICTORY_SKIP_MOVIES=open|end|fast` skips the title's opening Bink movies (`bink2scarlett.dll`), so test runs reach the game sooner. Off by default: unset, empty or `0` changes nothing; an unknown value is logged and ignored. - `open`: `BinkOpenWithOptions` fails, as Bink does for a file it cannot open; the DLL is not called. - `end`: movies open normally; the first `BinkNextFrame` seeks to the last frame, so each movie ends on its next frame. Later calls go to the DLL. - `fast`: until the last frame, `BinkWait` reports the next frame as due and `BinkShouldSkip` reports playback as behind, so the title decodes without frame-rate waits. Audio, threads, frame buffers, pause and close stay with the DLL; no title code is patched. The switch has a README row. Patch by Yz. Unit tests are included in `crates/victory-loader/src/movies.rs` (value parsing, per-strategy bindings, call sequences). Not run under Proton here. Windows untested by us. AI-assisted: the port and this text were drafted with an AI coding assistant.
VICTORY_SKIP_MOVIES=open|end|fast binds a few imports of bink2scarlett.dll
to stubs, so the title's opening movies are skipped and test runs reach
the game sooner. Unset, empty or 0 changes nothing; an unknown value is
logged and ignored.

- open: BinkOpenWithOptions fails as it does for a file it cannot open.
- end: the first BinkNextFrame seeks to the last frame (BinkGoto), so the
  movie ends at once; later calls go to the DLL.
- fast: BinkWait answers 0 and BinkShouldSkip 1 until the last frame, so
  the title's catch-up loop decodes without waiting.

Audio, threads, frame buffers, pause and close stay with the DLL; no title
code is patched. The stubs live in movies.rs (unit tests included), the
resolver hook in windows.rs, the module registration in lib.rs, and the
switch's README row.

Patch by Yz.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:04:55 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 13:09 UTC · original

Thanks @⁠zocram4cc (and Yz for the patch), having it as a real PR is much easier than the attachment. We will try VICTORY_SKIP_MOVIES=end and fast on Windows (RX 9070 XT) on win10-test and report whether the title still reaches its menus cleanly.

**@⁠PastiiJay** on GitHub · 2026-11-26 13:09 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/77#issuecomment-7192945462) Thanks @⁠zocram4cc (and Yz for the patch), having it as a real PR is much easier than the attachment. We will try `VICTORY_SKIP_MOVIES=end` and `fast` on Windows (RX 9070 XT) on win10-test and report whether the title still reaches its menus cleanly.
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 13:18 UTC · original

Tested on Windows (RX 9070 XT, Neptune-based build) with VICTORY_SKIP_MOVIES=end: the opening movie is skipped, the game goes straight to the loading screens and into the world normally. From launch to the first world frame: 34 s, against 44 s on the run just before without it, so about 10 s saved per launch. Thanks @⁠zocram4cc, and thanks to Yz for the patch! It's in our test builds from now on.

**@⁠PastiiJay** on GitHub · 2026-11-26 13:18 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/77#issuecomment-7193154057) Tested on Windows (RX 9070 XT, Neptune-based build) with `VICTORY_SKIP_MOVIES=end`: the opening movie is skipped, the game goes straight to the loading screens and into the world normally. From launch to the first world frame: 34 s, against 44 s on the run just before without it, so about 10 s saved per launch. Thanks @⁠zocram4cc, and thanks to Yz for the patch! It's in our test builds from now on.
This pull request can be merged automatically.
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/77/head:github-bot/gh-77'
git switch 'github-bot/gh-77'

Merge

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