Preload window: the shader step's percentage moves again #2458

Open
github-bot wants to merge 1 commit from github-bot/gh-2458 into main AGit
Owner

@⁠brucegrapes on GitHub · 2026-11-29 13:13 UTC · original
brucegrapes:fix/preload-shader-progress → main · +9 −1 · 1 files · 1 commits · open

translate.rs progress_line now prints "N shaders in the cache, file F of T (P %, B % of bytes), S s", and the window's parser only matched the older "N shaders in the cache, S s", so the first step's count stayed at 0 while the pipeline and library steps (whose lines did not change) moved on.

The parser takes both forms. The percentage is still the shader count against the last preload's total; when there is none, or this run has gone past it, it is the share of the files' bytes already behind the preload. The stats line shows "file F of T" during the step.

Fixes #

What it changes

During a preload, the window's first step ("Translating the game's shaders") stayed at 0 % for the whole step. The pipeline and library steps counted up normally.

The cause is that translate.rs progress_line now prints N shaders in the cache, file F of T (P %, B % of bytes), S s. The window's parser in scripts/preload-window.ps1 only matched the older N shaders in the cache, S s, so it never picked up the shader count. The pipeline and library lines did not change, which is why those steps still moved.

What this does:

  • The parser accepts both forms of the line.
  • The percentage is still the shader count against the last preload's total (the shaders= state file).
  • When there is no earlier total, or this run has gone past it, the percentage is the share of the files' bytes already done. Before, the step had no total in that case and showed no percentage.
  • The stats line shows file F of T during the shader step.

It changes one file, scripts/preload-window.ps1 (+9/−1). No Rust changes.

How it was tested

  • GPU and profile: RTX 3060, Series X, 2560x1440, DLSS balanced, frame generation off, ray tracing on (VICTORY_BVH_BUILDER=1)
  • Before: in a full preload after the shader translator's fingerprint changed, the shader step stayed at 0 % while the log showed 21000 shaders in the cache, file 31 of 39 (79 %, 84 % of bytes), 21 s and later lines.
  • After: TODO
  • The script parses with no errors and keeps its CRLF line endings. I took Update-PreloadWindow out of the script and fed it sample lines:
    • the new-form line set the shader count, file 31 of 39 and 84 % of bytes
    • the old-form line 22000 shaders in the cache, 25 s still updates the count against the earlier total
    • the final N shaders in the cache, M do not translate, S s line still sets the total and writes the state file
  • Wave sizes: not applicable. This touches the preload window only, not the shader translator.
  • cargo test passed for the crates it touches: not applicable (PowerShell only)

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #

🤖 Generated with Claude Code

**@⁠brucegrapes** on GitHub · 2026-11-29 13:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2458) `brucegrapes:fix/preload-shader-progress` → `main` · +9 −1 · 1 files · 1 commits · open translate.rs `progress_line` now prints "N shaders in the cache, file F of T (P %, B % of bytes), S s", and the window's parser only matched the older "N shaders in the cache, S s", so the first step's count stayed at 0 while the pipeline and library steps (whose lines did not change) moved on. The parser takes both forms. The percentage is still the shader count against the last preload's total; when there is none, or this run has gone past it, it is the share of the files' bytes already behind the preload. The stats line shows "file F of T" during the step. <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> Fixes # ## What it changes During a preload, the window's first step ("Translating the game's shaders") stayed at 0 % for the whole step. The pipeline and library steps counted up normally. The cause is that translate.rs `progress_line` now prints `N shaders in the cache, file F of T (P %, B % of bytes), S s`. The window's parser in `scripts/preload-window.ps1` only matched the older `N shaders in the cache, S s`, so it never picked up the shader count. The pipeline and library lines did not change, which is why those steps still moved. What this does: - The parser accepts both forms of the line. - The percentage is still the shader count against the last preload's total (the `shaders=` state file). - When there is no earlier total, or this run has gone past it, the percentage is the share of the files' bytes already done. Before, the step had no total in that case and showed no percentage. - The stats line shows `file F of T` during the shader step. It changes one file, `scripts/preload-window.ps1` (+9/−1). No Rust changes. ## How it was tested - GPU and profile: RTX 3060, Series X, 2560x1440, DLSS balanced, frame generation off, ray tracing on (`VICTORY_BVH_BUILDER=1`) - Before: in a full preload after the shader translator's fingerprint changed, the shader step stayed at 0 % while the log showed `21000 shaders in the cache, file 31 of 39 (79 %, 84 % of bytes), 21 s` and later lines. - After: TODO - The script parses with no errors and keeps its CRLF line endings. I took `Update-PreloadWindow` out of the script and fed it sample lines: - the new-form line set the shader count, `file 31 of 39` and `84 %` of bytes - the old-form line `22000 shaders in the cache, 25 s` still updates the count against the earlier total - the final `N shaders in the cache, M do not translate, S s` line still sets the total and writes the state file - Wave sizes: not applicable. This touches the preload window only, not the shader translator. - `cargo test` passed for the crates it touches: not applicable (PowerShell only) ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: # 🤖 Generated with [Claude Code](https://claude.com/claude-code)
translate.rs `progress_line` now prints "N shaders in the cache, file F of T
(P %, B % of bytes), S s", and the window's parser only matched the older
"N shaders in the cache, S s", so the first step's count stayed at 0 while
the pipeline and library steps (whose lines did not change) moved on.

The parser takes both forms. The percentage is still the shader count against
the last preload's total; when there is none, or this run has gone past it,
it is the share of the files' bytes already behind the preload. The stats
line shows "file F of T" during the step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 13:17:23 +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/2458/head:github-bot/gh-2458'
git switch 'github-bot/gh-2458'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2458'
git switch 'github-bot/gh-2458'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2458'
git switch 'github-bot/gh-2458'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2458'
git switch 'main'
git merge --squash 'github-bot/gh-2458'
git switch 'main'
git merge --ff-only 'github-bot/gh-2458'
git switch 'main'
git merge 'github-bot/gh-2458'
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!2458
No description provided.