Preload window: the shader step's percentage moves again #2458
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2458
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2458"
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?
@brucegrapes on GitHub · 2026-11-29 13:13 UTC · original
brucegrapes:fix/preload-shader-progress→main· +9 −1 · 1 files · 1 commits · opentranslate.rs
progress_linenow 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_linenow printsN shaders in the cache, file F of T (P %, B % of bytes), S s. The window's parser inscripts/preload-window.ps1only matched the olderN 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:
shaders=state file).file F of Tduring the shader step.It changes one file,
scripts/preload-window.ps1(+9/−1). No Rust changes.How it was tested
VICTORY_BVH_BUILDER=1)21000 shaders in the cache, file 31 of 39 (79 %, 84 % of bytes), 21 sand later lines.Update-PreloadWindowout of the script and fed it sample lines:file 31 of 39and84 %of bytes22000 shaders in the cache, 25 sstill updates the count against the earlier totalN shaders in the cache, M do not translate, S sline still sets the total and writes the state filecargo testpassed for the crates it touches: not applicable (PowerShell only)Checked for overlap
🤖 Generated with 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.