Preload: let the shader step print a real total (files or bytes scanned) #1423
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Jesper-Andersson on 2026-11-28T19:39:12Z.
Related: #869 shows a last-run total and an ETA in the launcher window. This asks for a real total from the shader step itself, so neither the console line nor that window has to rely on the previous run's count.
During
-Preload(which runsshaders, thenwarm, then the library step), the shader step's progress line only counts up:In
apps/victory/src/translate.rs(precompile), the total isn't known while the step runs: the walk reads each file and finds shader containers as it goes. A last-run count goes stale exactly when it matters most, after a build where translator changes make most shaders new.Suggestion: before the loop, count the candidate files (those
may_hold_shaderspasses, underMAX_FILE) and their total size. That's a metadata-only walk, with no reads. Then print progress against that, e.g. (made-up numbers):An ETA from the bytes done, or #869's window, could then build on it.
Not measured: how long the extra walk takes on a full install.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T19:39:21Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)