Preload: the shader step prints its progress against a real total (#1423) #1505
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!1505
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1505"
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?
@oVolkra on GitHub · 2026-11-28 21:00 UTC · original
oVolkra:preload-total→main· +64 −32 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCFixes #1423.
What changes
precompilenow walks the paths first, using metadata only (no reads), to list the candidate files (may_hold_shaders, up toMAX_FILE) and their total size. The progress line, still printed every 1000 shaders, is now:(made-up numbers). The file number is the file being worked on; the byte percentage counts the files before it. The summary line at the end is unchanged.
Most of the diff is the loop body moving out by one level.
Note for #869
#869 matches the progress line with
^(\d+) shaders in the cache, \d+ s$. That pattern does not match the new line, so whichever lands second needs it updated, for example to^(\d+) shaders in the cache, .*\d+ s$, tried after the summary line's pattern.Tested
On
923e38c, Windows:cargo test -p victory --release translate::: 2 passed, including a new test of the line's format.cargo clippy -p victory --release --all-targets: exit 0, no warnings intranslate.rs.Not run against a game install, so the time the extra walk takes is not measured.
I did not run
cargo fmtover the file: it also rewrites many lines this change does not touch.🤖 Generated with Claude Code