What to do to not preload again all the shaders allready loaded and translated. #1262
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 dinur125 on 2026-11-28T16:42:11Z.
I've preloaded 88936 shaders and translated it, and after that i've runned the game again for about one and a half hours. Then tought to preload and translate the new shaders, and i see that i have the same number of shaders and it started to preload it all again.
Did i do something wrong ? Or this is how it suppose to do.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T16:42:20Z.
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)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T17:17:23Z.
You did nothing wrong. That's how the preload shows it. Each time, it goes through every shader in the game and counts each one in its "N shaders in the cache" lines, including those translated before. Those are read back from the cache, not made again (
shader_cache::host_shadertakes the cached translation when there is one). So the count is the same, and a second pass should take far less time: compare the seconds in its lines with your first one.Two exceptions make it translate everything again:
victory.exeversion. The cache is kept per build of the layer, as you saw with .03;The part of a second preload that does new work comes after the shaders: it builds the pipelines the game made during your runs, and your hour and a half of play added some. So re-running it now and then after playing is useful, and stopping it midway loses nothing.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kalberts0089-hash on 2026-11-29T09:23:37Z.
@dinur125 The key line in your screenshot is in the pipelines part, not the shaders:
0 made beforemeans none of the pipelines from your first preload counted as done, so it's building all of them again. The shader step above it is the cheap part. A pipeline counts as done only when its line inwarm-done.txthas the same 16-digit fingerprint as the current run. That fingerprint is a hash of the translator insidevictory.exe, its settings (including EARLY DEPTH TEST), the driver version, thestatic-samplers.txtcontents, the full path ofvictory.exe, and the card (apps/victory/src/warm.rs:36-43,crates/victory-gpu/src/pipeline/known.rs:283-291). Change any one of them and you get 0 again. With a scratch cache, copying the exe to another folder or togglingVICTORY_EARLY_DEPTHwas enough to drop a 3-of-5 resume to 0.To see which fingerprints your earlier runs used:
If your older lines are under a different fingerprint, something changed between the two runs. The usual causes are a new build or folder, a driver update, or a different EARLY DEPTH setting. Starting the preload from F1 -> PRELOAD SHADERS every time keeps the settings the same.
Also, in v2026.11.29.01 the preload only builds the pipelines your earlier runs actually used, once a run has recorded them (
--allbrings back the full set).VICTORY_WARM_SHARED=1stops the exe path from counting. Updating will still mean one full rebuild because the translator changes. The folder-path part is tracked in #1483.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:46:31Z.
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.