Quality-of-life fixes: skip the intro movies with A, and an on-screen shader compile counter #2300

Closed
github-bot wants to merge 2 commits from gh-pr/2300/head into gh-pr/2300/base
Owner

@⁠N3BB3Z4R on GitHub · 2026-11-29 11:35 UTC · original
intro-skip-button-shader-counter → main · +295 −4 · 6 files · 2 commits · closed without merging

Two small quality-of-life fixes for players, taken from my rtx4070 branch where both have run since 2026-11-28. Nothing else from that branch is included.

What it changes

1. Skip the intro movies with A (VICTORY_SKIP_BINK=button, set by victory play)

Before this change you either sat through the logos and intro every start, or used VICTORY_SKIP_BINK=1 and never saw them. With the new button mode a movie plays normally until you press a button, and the press ends it:

  • A or Start on any pad, or Enter, Space or Esc on the keyboard. Keys count only while the game's window is in front.
  • One press skips one movie. The button must be seen released first, so holding A through the logos does not skip the next movie as well.
  • The menu's looping background is never skipped. Only movies that play once (BINKWILLLOOP not set) are skipped.
  • The skip uses the existing VICTORY_SKIP_BINK path. The movie is held on its last frame and paused, so its sound stops, and the game's own end-of-movie check moves on. The button is checked in BinkNextFrame, between frames, so a frame is never cut off mid-decode.

victory play now sets VICTORY_SKIP_BINK=button. --set VICTORY_SKIP_BINK=0 turns it off. 1 and all work as before.

Files: crates/victory-hle/src/modules/bink.rs, plus one line in apps/victory/src/play.rs.

2. An on-screen counter while shaders compile (VICTORY_SHADER_NOTICE=0 hides it)

On a first start, or after an update clears the shader cache, the game can run at a few fps and stutter for minutes. Nothing on screen says why, so it looks like a bug. This adds a small box at the bottom middle of the picture:

COMPILING SHADERS 1234/2100 58%
LOW FPS AND STUTTER UNTIL DONE
  • It appears once 8 or more pipelines are waiting for the compile workers. A few at a time compile in a moment and do not slow the frame.
  • The count covers the current burst of compiling. Pipelines queued while the box is up are added to the total, and it shows 100 % only once all of them are done.
  • It stays 2 s after the queue drains. Its text is redrawn at most every 0.5 s, like the frame-generation notice's.
  • It reuses the existing panel and font code (the % glyph is already in font.rs). pipeline/make.rs gets one more counter (QUEUED, pipelines ever queued, next to WAITING), and pipeline::making_of_queued() reads both together.

Files: crates/victory-gpu/src/host/panel.rs (Building), crates/victory-gpu/src/host.rs (three lines in the presenter), crates/victory-gpu/src/pipeline.rs, crates/victory-gpu/src/pipeline/make.rs.

How it was tested

  • GPU and profile: RTX 4070 12 GB, Windows 11 26100, driver 621.14. Series X profile, 1080p to 1440p, DLSS Performance, frame generation 2x, ray tracing on.
  • Before: the logos and intro played through every start. A cold shader cache gave minutes of 4 to 11 fps with nothing on screen to explain it.
  • After: pressing A ended the first logo at frame 264 of 450, and the next movie played until its own press. The box counted up through the first-start compiles and went away 2 s after the queue drained.
  • For shader changes, the wave sizes tested: not applicable, no translator change.
  • cargo test passed for the crates it touches: yes. The bink tests in victory-hle (including a new one for button mode), the host::panel and pipeline::make tests in victory-gpu, and the play tests in victory. New tests: building_lines_fit and a_stretch_counts_from_its_start in panel.rs, and a button-mode test in bink.rs.
  • Clippy: no warning comes from a line this PR adds. CI's clippy step will still fail, and not because of this PR. main (829188e9) already fails gate 1 on crates/victory-loader/src/crash.rs:804 (unwind_copy is used only by stacks.rs, which builds only with diagnostics). That is the same failure the other open PRs show, and gate 2 also stops on three findings in victory-shader/src/emit/lower. Neither is touched here.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Nothing open adds a button skip or a shader-progress display. Related: #26 (the original VICTORY_SKIP_BINK, which this builds on).
**@⁠N3BB3Z4R** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2300) `intro-skip-button-shader-counter` → `main` · +295 −4 · 6 files · 2 commits · closed without merging Two small quality-of-life fixes for players, taken from my `rtx4070` branch where both have run since 2026-11-28. Nothing else from that branch is included. ## What it changes ### 1. Skip the intro movies with A (`VICTORY_SKIP_BINK=button`, set by `victory play`) Before this change you either sat through the logos and intro every start, or used `VICTORY_SKIP_BINK=1` and never saw them. With the new `button` mode a movie plays normally until you press a button, and the press ends it: - **A** or **Start** on any pad, or **Enter**, **Space** or **Esc** on the keyboard. Keys count only while the game's window is in front. - **One press skips one movie.** The button must be seen released first, so holding A through the logos does not skip the next movie as well. - **The menu's looping background is never skipped.** Only movies that play once (`BINKWILLLOOP` not set) are skipped. - The skip uses the existing `VICTORY_SKIP_BINK` path. The movie is held on its last frame and paused, so its sound stops, and the game's own end-of-movie check moves on. The button is checked in `BinkNextFrame`, between frames, so a frame is never cut off mid-decode. `victory play` now sets `VICTORY_SKIP_BINK=button`. `--set VICTORY_SKIP_BINK=0` turns it off. `1` and `all` work as before. Files: `crates/victory-hle/src/modules/bink.rs`, plus one line in `apps/victory/src/play.rs`. ### 2. An on-screen counter while shaders compile (`VICTORY_SHADER_NOTICE=0` hides it) On a first start, or after an update clears the shader cache, the game can run at a few fps and stutter for minutes. Nothing on screen says why, so it looks like a bug. This adds a small box at the bottom middle of the picture: ``` COMPILING SHADERS 1234/2100 58% LOW FPS AND STUTTER UNTIL DONE ``` - It appears once 8 or more pipelines are waiting for the compile workers. A few at a time compile in a moment and do not slow the frame. - The count covers the current burst of compiling. Pipelines queued while the box is up are added to the total, and it shows 100 % only once all of them are done. - It stays 2 s after the queue drains. Its text is redrawn at most every 0.5 s, like the frame-generation notice's. - It reuses the existing panel and font code (the `%` glyph is already in `font.rs`). `pipeline/make.rs` gets one more counter (`QUEUED`, pipelines ever queued, next to `WAITING`), and `pipeline::making_of_queued()` reads both together. Files: `crates/victory-gpu/src/host/panel.rs` (`Building`), `crates/victory-gpu/src/host.rs` (three lines in the presenter), `crates/victory-gpu/src/pipeline.rs`, `crates/victory-gpu/src/pipeline/make.rs`. ## How it was tested - GPU and profile: RTX 4070 12 GB, Windows 11 26100, driver 621.14. Series X profile, 1080p to 1440p, DLSS Performance, frame generation 2x, ray tracing on. - Before: the logos and intro played through every start. A cold shader cache gave minutes of 4 to 11 fps with nothing on screen to explain it. - After: pressing A ended the first logo at frame 264 of 450, and the next movie played until its own press. The box counted up through the first-start compiles and went away 2 s after the queue drained. - For shader changes, the wave sizes tested: not applicable, no translator change. - `cargo test` passed for the crates it touches: yes. The `bink` tests in `victory-hle` (including a new one for button mode), the `host::panel` and `pipeline::make` tests in `victory-gpu`, and the `play` tests in `victory`. New tests: `building_lines_fit` and `a_stretch_counts_from_its_start` in `panel.rs`, and a button-mode test in `bink.rs`. - Clippy: no warning comes from a line this PR adds. **CI's clippy step will still fail, and not because of this PR.** `main` (`829188e9`) already fails gate 1 on `crates/victory-loader/src/crash.rs:804` (`unwind_copy` is used only by `stacks.rs`, which builds only with `diagnostics`). That is the same failure the other open PRs show, and gate 2 also stops on three findings in `victory-shader/src/emit/lower`. Neither is touched here. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Nothing open adds a button skip or a shader-progress display. Related: #26 (the original `VICTORY_SKIP_BINK`, which this builds on).
- A or Start on any pad, Enter, Space or Esc (the keys only while a window of
  this process is in front).
- Looked at where the title moves to the next frame (BinkNextFrame), with no
  decode of the movie under way; from there the existing skip: the movie held
  on its last frame and paused (its sound stops), the title's own check ends it.
- The button must be seen up first: one held from before the movie, or from
  the movie before, skips nothing, so one press skips one movie. A movie that
  loops (the menu's background) is never skipped.
- `1` and `all` are unchanged; `button` skips nothing until asked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"COMPILING SHADERS 1234/2100 58%" / "LOW FPS AND STUTTER UNTIL DONE", from 8
pipelines queued for the workers, kept 2 s after the queue drains, its text
renewed at most every 0.5 s (as the frame-generation notice's).

- The count is of the stretch the box shows: it begins when the box comes up
  (what is left then is all of it so far); pipelines queued while it shows add
  to its total. 100 % only once all are made.
- make.rs counts the pipelines ever queued (QUEUED, beside WAITING);
  pipeline::making_of_queued reads both together.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:38:59 +00:00
github-bot closed this pull request 2026-11-29 11:38:59 +00:00

Pull request closed

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!2300
No description provided.