What to do to not preload again all the shaders allready loaded and translated. #1262

Closed
opened 2026-11-28 16:47:13 +00:00 by github-bot · 4 comments
Owner

@⁠dinur125 on GitHub · 2026-11-28 16:42 UTC · original

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.

image
**@⁠dinur125** on GitHub · 2026-11-28 16:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1262) 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. <img width="1220" height="873" alt="image" src="https://github.com/user-attachments/assets/8f05457f-efcc-4a88-ba47-39c50f1b6d46" />
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 16:47:13 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 16:42 UTC · original

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.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 16:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1262#issuecomment-7242447953) 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. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠kibagami-nc on GitHub · 2026-11-28 17:17 UTC · original

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_shader takes 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:

  • another victory.exe version. The cache is kept per build of the layer, as you saw with .03;
  • sometimes a new graphics driver, as the preload's own text says.

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.

**@⁠kibagami-nc** on GitHub · 2026-11-28 17:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1262#issuecomment-7242901157) 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_shader` takes 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: - **another `victory.exe` version.** The cache is kept per build of the layer, as you saw with .03; - **sometimes a new graphics driver**, as the preload's own text says. 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.
Author
Owner

@⁠kalberts0089-hash on GitHub · 2026-11-29 09:23 UTC · original

@⁠dinur125 The key line in your screenshot is in the pipelines part, not the shaders:

88936 pipelines known, 0 made before (df69bc6912c89a2a, ...); 88936 to make

0 made before means 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 in warm-done.txt has the same 16-digit fingerprint as the current run. That fingerprint is a hash of the translator inside victory.exe, its settings (including EARLY DEPTH TEST), the driver version, the static-samplers.txt contents, the full path of victory.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 toggling VICTORY_EARLY_DEPTH was enough to drop a 3-of-5 resume to 0.

To see which fingerprints your earlier runs used:

Get-Content "$env:LOCALAPPDATA\victory\cache\pipelines\warm-done.txt" | % { ($_ -split ' ')[0] } | Group-Object | Select Count, Name

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 (--all brings back the full set). VICTORY_WARM_SHARED=1 stops the exe path from counting. Updating will still mean one full rebuild because the translator changes. The folder-path part is tracked in #1483.

**@⁠kalberts0089-hash** on GitHub · 2026-11-29 09:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1262#issuecomment-7253732670) @⁠dinur125 The key line in your screenshot is in the pipelines part, not the shaders: ``` 88936 pipelines known, 0 made before (df69bc6912c89a2a, ...); 88936 to make ``` `0 made before` means 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 in `warm-done.txt` has the same 16-digit fingerprint as the current run. That fingerprint is a hash of the translator inside `victory.exe`, its settings (including EARLY DEPTH TEST), the driver version, the `static-samplers.txt` contents, the full path of `victory.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 toggling `VICTORY_EARLY_DEPTH` was enough to drop a 3-of-5 resume to 0. To see which fingerprints your earlier runs used: ```powershell Get-Content "$env:LOCALAPPDATA\victory\cache\pipelines\warm-done.txt" | % { ($_ -split ' ')[0] } | Group-Object | Select Count, Name ``` 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 (`--all` brings back the full set). `VICTORY_WARM_SHARED=1` stops the exe path from counting. Updating will still mean one full rebuild because the translator changes. The folder-path part is tracked in #1483.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:46 UTC · original

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:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1262#issuecomment-7283563299) 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](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/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: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#1262
No description provided.