Bink: VICTORY_SKIP_BINK=intro skips the start's movies and leaves the ones shown in play (off by default) #3868

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

@⁠RomanFama592 on GitHub · 2026-11-30 09:50 UTC · original
RomanFama592:feature/skip-bink-intro → main · +40 −3 · 1 files · 2 commits · open

Related #3867

What it changes

VICTORY_SKIP_BINK=intro skips the movies 1 skips (the ones that play once) only while the title has not drawn its world yet. "Drawn its world" is victory_gpu::world_since(), the first frame of 500 draws or more, the same test VICTORY_CAPTURE_WORLD and VICTORY_KEYS_FROM=world use. The start's logos and intro are skipped, and a movie shown during play is left to the title. 1 and all are unchanged, and the switch stays off unless asked for.

One file, crates/victory-hle/src/modules/bink.rs: the new value, a decide() for the choice, and its test.

Why: with 1, a movie shown in play froze this title (#3867).

How it was tested

  • GPU and profile: RTX 4060 Ti 8 GB, Ryzen 9 5900X, 64 GB, Windows 11; Series X, 1440p output, DLSS.
  • With intro: the start's movie (3840x2160, 450 frames) was skipped. The first world frame came 22 s later, and 3.5 minutes in the world ran normally (10-11 fps, 5,600-7,600 draws, no burst of Bink calls). The game was closed cleanly with SC_CLOSE.
  • With 1, the same build froze as described in #3867.
  • cargo test -p victory-hle --lib bink: 3 passed, including the new intro_skips_only_what_plays_once_before_the_world. cargo clippy -p victory-hle --all-targets --no-deps -- -D warnings: nothing in bink.rs.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related:
    • #26 (merged): VICTORY_SKIP_BINK itself; this adds a value.
    • #2300 (closed): a button mode (skip on a press). Different approach, and not in main.
    • #1518 and #1768: the movie plane gate for frame generation. Unchanged here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv

**@⁠RomanFama592** on GitHub · 2026-11-30 09:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3868) `RomanFama592:feature/skip-bink-intro` → `main` · +40 −3 · 1 files · 2 commits · open Related #3867 ## What it changes `VICTORY_SKIP_BINK=intro` skips the movies `1` skips (the ones that play once) only while the title has not drawn its world yet. "Drawn its world" is `victory_gpu::world_since()`, the first frame of 500 draws or more, the same test `VICTORY_CAPTURE_WORLD` and `VICTORY_KEYS_FROM=world` use. The start's logos and intro are skipped, and a movie shown during play is left to the title. `1` and `all` are unchanged, and the switch stays off unless asked for. One file, `crates/victory-hle/src/modules/bink.rs`: the new value, a `decide()` for the choice, and its test. Why: with `1`, a movie shown in play froze this title (#3867). ## How it was tested - GPU and profile: RTX 4060 Ti 8 GB, Ryzen 9 5900X, 64 GB, Windows 11; Series X, 1440p output, DLSS. - With `intro`: the start's movie (3840x2160, 450 frames) was skipped. The first world frame came 22 s later, and 3.5 minutes in the world ran normally (10-11 fps, 5,600-7,600 draws, no burst of Bink calls). The game was closed cleanly with SC_CLOSE. - With `1`, the same build froze as described in #3867. - `cargo test -p victory-hle --lib bink`: 3 passed, including the new `intro_skips_only_what_plays_once_before_the_world`. `cargo clippy -p victory-hle --all-targets --no-deps -- -D warnings`: nothing in `bink.rs`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: - #26 (merged): `VICTORY_SKIP_BINK` itself; this adds a value. - #2300 (closed): a `button` mode (skip on a press). Different approach, and not in main. - #1518 and #1768: the movie plane gate for frame generation. Unchanged here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv
`1` skips every Bink movie that plays once, for the whole run. On this title
that froze the game: a movie shown in play (1080x1080, 82 frames, about a
minute in) was skipped, the title then called the player some 15 million
times a second waiting for it, and frames stopped 15 s later (2026-11-30,
RTX 4060 Ti 8 GB, Ryzen 9 5900X). `intro` skips what `1` skips only while
the title has not drawn its world yet (victory_gpu::world_since, the first
frame of 500 draws or more, the test VICTORY_CAPTURE_WORLD and
VICTORY_KEYS_FROM=world use), so the start's movies go and the game's play.
`1` and `all` are unchanged; off unless asked for, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 09:51:37 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 10:15 UTC · original

I ran the actual Bink wrapper path on Windows with generated movie records and stub playback calls. The fixture feeds the existing world tracker a frame of 499 draws, then one of 500. It opens the 450-frame startup movie before the marker and first sees the 82-frame movie afterward.

Build and mode Startup movie Later movie
Main 41adb551, 1 Jumps to frame 450 Jumps to frame 82, 0 playback calls
#3868 d642055, 1 Jumps to frame 450 Jumps to frame 82, 0 playback calls
#3868 d642055, intro Jumps to frame 450 Wait and next-frame reach the player, advances from frame 1 to 2

The existing startup decision stayed cached while that movie was open. Both handles closed and were removed from the tracking map in every run. The three existing PR Bink tests also passed on Rust 1.98.1/MSVC.

This verifies that the later movie takes the ordinary playback path after the world marker. If a gameplay capture is available, the direct check for #3867 is that the 1080×1080, 82-frame clip appears in the intro log with skip=false, then closes normally.

If you reuse this regression case, please retain its authorship with Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 10:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3868#issuecomment-7275348328) I ran the actual Bink wrapper path on Windows with generated movie records and stub playback calls. The fixture feeds the existing world tracker a frame of 499 draws, then one of 500. It opens the 450-frame startup movie before the marker and first sees the 82-frame movie afterward. | Build and mode | Startup movie | Later movie | | --- | --- | --- | | Main `41adb551`, `1` | Jumps to frame 450 | Jumps to frame 82, 0 playback calls | | #3868 `d642055`, `1` | Jumps to frame 450 | Jumps to frame 82, 0 playback calls | | #3868 `d642055`, `intro` | Jumps to frame 450 | Wait and next-frame reach the player, advances from frame 1 to 2 | The existing startup decision stayed cached while that movie was open. Both handles closed and were removed from the tracking map in every run. The three existing PR Bink tests also passed on Rust 1.98.1/MSVC. This verifies that the later movie takes the ordinary playback path after the world marker. If a gameplay capture is available, the direct check for #3867 is that the 1080×1080, 82-frame clip appears in the `intro` log with `skip=false`, then closes normally. If you reuse this regression case, please retain its authorship with `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
github-bot changed title from VICTORY_SKIP_BINK=intro: skip the start's Bink movies, leave the game's alone to Bink: VICTORY_SKIP_BINK=intro skips the start's movies and leaves the ones shown in play (off by default) 2026-11-30 14:53:56 +00:00
Author
Owner

@⁠RomanFama592 on GitHub · 2026-11-30 19:20 UTC · original

Thanks for running the wrapper path; that matches what the change is meant to do. The in-game check (the 1080×1080 clip logged with skip=false in an intro run) is still to do on my side; I'll add it here once I have that log.

**@⁠RomanFama592** on GitHub · 2026-11-30 19:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3868#issuecomment-7289220060) Thanks for running the wrapper path; that matches what the change is meant to do. The in-game check (the 1080×1080 clip logged with `skip=false` in an `intro` run) is still to do on my side; I'll add it here once I have that log.
Author
Owner

@⁠cloph-dsp on GitHub · 2026-12-01 11:54 UTC · original

Verification of this PR (AI-assisted: Hy4 flash), source only, no game data.

Windows / rustc 1.100.0 (0ef1bc386 2026-11-09) / MSVC. Worktree at head 3e0bc5e3 (the branch's merge commit), dedicated per-worktree CARGO_TARGET_DIR (D:\Victory-Contrib\NVIDIA-Contrib\target-3868).

Negative control on the base 7d93ee07 (test must be new there):
git grep -F intro_skips_only_what_plays_once_before_the_world 7d93ee07 -- crates/victory-hle/src/modules/bink.rs -> exit 1 (new)

Whitespace: git diff --check "7d93ee07..3e0bc5e3" -- crates/victory-hle/src/modules/bink.rs -> exit 0; git diff --numstat -> 40 added / 3 removed.

Test:

cargo test --locked -p victory-hle --lib -- modules::bink::tests::intro_skips_only_what_plays_once_before_the_world --exact --test-threads=1 --quiet

Result: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 482 filtered out, exit 0 (two unrelated warnings from the lib test build).

The test exercises decide(mode, looping, world) across Mode::Intro / NotLooping / All / Off, i.e. Intro skips only the non-looping play before the world and every other mode ignores world. All synthetic inputs, no title code, no device.

GPU/driver: N/A (no device opened).

Verdict: PASS for the new synthetic test on this host.

**@⁠cloph-dsp** on GitHub · 2026-12-01 11:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3868#issuecomment-7310346386) Verification of this PR (AI-assisted: Hy4 flash), source only, no game data. Windows / rustc 1.100.0 (0ef1bc386 2026-11-09) / MSVC. Worktree at head 3e0bc5e3 (the branch's merge commit), dedicated per-worktree CARGO_TARGET_DIR (D:\Victory-Contrib\NVIDIA-Contrib\target-3868). Negative control on the base 7d93ee07 (test must be new there): `git grep -F intro_skips_only_what_plays_once_before_the_world 7d93ee07 -- crates/victory-hle/src/modules/bink.rs` -> exit 1 (new) Whitespace: `git diff --check "7d93ee07..3e0bc5e3" -- crates/victory-hle/src/modules/bink.rs` -> exit 0; `git diff --numstat` -> 40 added / 3 removed. Test: ``` cargo test --locked -p victory-hle --lib -- modules::bink::tests::intro_skips_only_what_plays_once_before_the_world --exact --test-threads=1 --quiet ``` Result: `test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 482 filtered out`, exit 0 (two unrelated warnings from the lib test build). The test exercises `decide(mode, looping, world)` across Mode::Intro / NotLooping / All / Off, i.e. Intro skips only the non-looping play before the world and every other mode ignores `world`. All synthetic inputs, no title code, no device. GPU/driver: N/A (no device opened). Verdict: PASS for the new synthetic test on this host.
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/3868/head:github-bot/gh-3868'
git switch 'github-bot/gh-3868'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3868'
git switch 'github-bot/gh-3868'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3868'
git switch 'github-bot/gh-3868'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3868'
git switch 'main'
git merge --squash 'github-bot/gh-3868'
git switch 'main'
git merge --ff-only 'github-bot/gh-3868'
git switch 'main'
git merge 'github-bot/gh-3868'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3868
No description provided.