Preload: the shader step prints its progress against a real total (#1423) #1505
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by oVolkra on 2026-11-28T21:00:14Z.
Fixes #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