PRECACHE SHADERS | BROKEN AGAIN | 11.30.2 - is not properly creating a full shader pre-load #4176

Open
opened 2026-11-30 17:04:16 +00:00 by ajmi982 · 10 comments
ajmi982 commented 2026-11-30 17:04:16 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ajmi982 on 2026-11-30T17:04:16Z.


same as yesterday. We get hotfixes (2-3-4-5) and stuff breaks :(

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6701758350 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176). Originally posted by [ajmi982](https://github.com/ajmi982) on 2026-11-30T17:04:16Z. --- same as yesterday. We get hotfixes (2-3-4-5) and stuff breaks :(
github-actions[bot] commented 2026-11-30 17:04:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T17:04:28Z.


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)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7285677464 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285677464). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T17:04:28Z. --- 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)
ajmi982 commented 2026-11-30 17:06:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ajmi982 on 2026-11-30T17:06:30Z.


victory-nvidia-play-20261130-170535-25552.log

I made sure the entire CACHE folder was empty. Fresh download of 11.30.2 and the damn thing instantly starts - it does NOT preload shaders at all

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7285730372 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285730372). Originally posted by [ajmi982](https://github.com/ajmi982) on 2026-11-30T17:06:30Z. --- [victory-nvidia-play-20261130-170535-25552.log](https://github.com/user-attachments/files/35630689/victory-nvidia-play-20261130-170535-25552.log) I made sure the entire CACHE folder was empty. Fresh download of 11.30.2 and the damn thing instantly starts - it does NOT preload shaders at all
Dash-Tale commented 2026-11-30 17:07:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dash-Tale on 2026-11-30T17:07:25Z.


yeah, same here

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7285754404 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285754404). Originally posted by [Dash-Tale](https://github.com/Dash-Tale) on 2026-11-30T17:07:25Z. --- yeah, same here
RsZoli commented 2026-11-30 17:13:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RsZoli on 2026-11-30T17:13:11Z.


same here, the fps is tanked also

image
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7285908915 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285908915). Originally posted by [RsZoli](https://github.com/RsZoli) on 2026-11-30T17:13:11Z. --- same here, the fps is tanked also <img width="1882" height="623" alt="image" src="https://github.com/user-attachments/assets/b4b122cc-8dda-4fea-9a77-1386727d0db1" />
nidea1 commented 2026-11-30 17:37:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nidea1 on 2026-11-30T17:37:55Z.


Opened #4231 to fix the 5baad7e3 cache-cleanup regressions introduced in v2026.11.30.02: clear_stale_shaders was deleting all of cache/pipelines/ (including the title's translator-independent known-pipelines.bin, known-shaders.bin, early-pipelines.txt, slow-pipelines.txt, and static-samplers.txt) right before preload ran — leaving preload with 0 pipelines known — and standalone victory preload did not stamp translator.txt, causing the next victory play to wipe the freshly preloaded cache.

(Separately, automatic preload on first start of a new victory.exe only triggers when VICTORY_FRAMEGEN=1 is active; when FSR 3 / FSR 4 or Frame Generation Off is chosen, preload must be started via F1 -> PRELOAD SHADERS or victory.exe play --preload, see #3941.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7286610032 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7286610032). Originally posted by [nidea1](https://github.com/nidea1) on 2026-11-30T17:37:55Z. --- Opened #4231 to fix the `5baad7e3` cache-cleanup regressions introduced in v2026.11.30.02: `clear_stale_shaders` was deleting all of `cache/pipelines/` (including the title's translator-independent `known-pipelines.bin`, `known-shaders.bin`, `early-pipelines.txt`, `slow-pipelines.txt`, and `static-samplers.txt`) right before `preload` ran — leaving `preload` with `0 pipelines known` — and standalone `victory preload` did not stamp `translator.txt`, causing the next `victory play` to wipe the freshly preloaded cache. (Separately, automatic preload on first start of a new `victory.exe` only triggers when `VICTORY_FRAMEGEN=1` is active; when FSR 3 / FSR 4 or Frame Generation Off is chosen, preload must be started via F1 -> `PRELOAD SHADERS` or `victory.exe play --preload`, see #3941.)
RsZoli commented 2026-11-30 19:18:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RsZoli on 2026-11-30T19:18:34Z.


Opened #4231 to fix the 5baad7e3 cache-cleanup regressions introduced in v2026.11.30.02: clear_stale_shaders was deleting all of cache/pipelines/ (including the title's translator-independent known-pipelines.bin, known-shaders.bin, early-pipelines.txt, slow-pipelines.txt, and static-samplers.txt) right before preload ran — leaving preload with 0 pipelines known — and standalone victory preload did not stamp translator.txt, causing the next victory play to wipe the freshly preloaded cache.

(Separately, automatic preload on first start of a new victory.exe only triggers when VICTORY_FRAMEGEN=1 is active; when FSR 3 / FSR 4 or Frame Generation Off is chosen, preload must be started via F1 -> PRELOAD SHADERS or victory.exe play --preload, see #3941.)

well, i'm using framegen as you can see on my screenshot and still were not every shader preloaded!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7289180664 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7289180664). Originally posted by [RsZoli](https://github.com/RsZoli) on 2026-11-30T19:18:34Z. --- > Opened [#4231](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4231) to fix the `5baad7e3` cache-cleanup regressions introduced in v2026.11.30.02: `clear_stale_shaders` was deleting all of `cache/pipelines/` (including the title's translator-independent `known-pipelines.bin`, `known-shaders.bin`, `early-pipelines.txt`, `slow-pipelines.txt`, and `static-samplers.txt`) right before `preload` ran — leaving `preload` with `0 pipelines known` — and standalone `victory preload` did not stamp `translator.txt`, causing the next `victory play` to wipe the freshly preloaded cache. > > (Separately, automatic preload on first start of a new `victory.exe` only triggers when `VICTORY_FRAMEGEN=1` is active; when FSR 3 / FSR 4 or Frame Generation Off is chosen, preload must be started via F1 -> `PRELOAD SHADERS` or `victory.exe play --preload`, see [#3941](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3941).) well, i'm using framegen as you can see on my screenshot and still were not every shader preloaded!
ishan-2025 commented 2026-11-30 20:38:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ishan-2025 on 2026-11-30T20:38:57Z.


Measured data point on e1251c31 (v2026.11.30.03, diagnostics build from source). It shows what a cache that never got a full preload costs, and a case that preload_needed does not cover.

Setup: RTX 5080 16 GB, Ryzen 9 5950X, 64 GB RAM. Series X, 2560x1440, DLSS Quality, no frame generation. Same save and same scripted run each time, warm shaders.

What happened: I started from an empty cache, so there was no known-pipelines.bin yet. The preload before the first run (victory preload, the same as the first-start one) translated the shaders and reported 0 pipelines known. The first run then wrote the pipeline book and made the pipelines it met in the world. So at the next start, needs_pipelines() was false: the book is there, but host-pipelines.bin is not empty. No full preload ran, and draws kept waiting for pipelines met for the first time (a pass over the screen was waited for, under VICTORY_PIPELINE_WAIT_ALL).

Pipeline waits per run (whole log; frame times from the per-second frame times: lines, 250 s on):

Run Waits Wait time total Longest wait Frames over 50 ms Frames over 100 ms Longest frame
1st run, empty cache 83 112.6 s 10.0 s — — —
2nd run, no preload 30 27.3 s 1.6 s 13.2% 16 1,216 ms
3rd run, after victory preload --all 0 — — 6.7% 4 167 ms
  • After the preload: world median 36.9 ms, against 40.6 ms on the 2nd run.
  • What the manual preload did: it found 83,562 pipelines in the book and made 74,257. That took about 25 min on 21 processes, plus about 10 min to store 9,166 in the library.

So a player who starts on an empty cache (a new install, or the cache folder emptied by hand as in the first comment here) gets the first-start preload with no book, which makes nothing. After that, the check never fires again, because the first session's own pipelines make host-pipelines.bin non-empty. Until they run PRELOAD SHADERS from the F1 menu, they keep these stalls in every new area.

A possible check, not tested: preload when the book names many more pipelines than the library holds. Another: preload once after the first run that wrote the book.

#4231 keeps the book across translator updates, which covers players who update. This case is only about a cache that starts empty.

AI-assisted (Claude Code); all numbers are read from my own logs.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7291257710 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7291257710). Originally posted by [ishan-2025](https://github.com/ishan-2025) on 2026-11-30T20:38:57Z. --- Measured data point on `e1251c31` (v2026.11.30.03, diagnostics build from source). It shows what a cache that never got a full preload costs, and a case that `preload_needed` does not cover. **Setup:** RTX 5080 16 GB, Ryzen 9 5950X, 64 GB RAM. Series X, 2560x1440, DLSS Quality, no frame generation. Same save and same scripted run each time, warm shaders. **What happened:** I started from an empty cache, so there was no `known-pipelines.bin` yet. The preload before the first run (`victory preload`, the same as the first-start one) translated the shaders and reported `0 pipelines known`. The first run then wrote the pipeline book and made the pipelines it met in the world. So at the next start, `needs_pipelines()` was false: the book is there, but `host-pipelines.bin` is not empty. No full preload ran, and draws kept waiting for pipelines met for the first time (`a pass over the screen was waited for`, under `VICTORY_PIPELINE_WAIT_ALL`). **Pipeline waits per run** (whole log; frame times from the per-second `frame times:` lines, 250 s on): | Run | Waits | Wait time total | Longest wait | Frames over 50 ms | Frames over 100 ms | Longest frame | |---|---|---|---|---|---|---| | 1st run, empty cache | 83 | 112.6 s | 10.0 s | — | — | — | | 2nd run, no preload | 30 | 27.3 s | 1.6 s | 13.2% | 16 | 1,216 ms | | 3rd run, after `victory preload --all` | 0 | — | — | 6.7% | 4 | 167 ms | - **After the preload:** world median 36.9 ms, against 40.6 ms on the 2nd run. - **What the manual preload did:** it found 83,562 pipelines in the book and made 74,257. That took about 25 min on 21 processes, plus about 10 min to store 9,166 in the library. So a player who starts on an empty cache (a new install, or the cache folder emptied by hand as in the first comment here) gets the first-start preload with no book, which makes nothing. After that, the check never fires again, because the first session's own pipelines make `host-pipelines.bin` non-empty. Until they run PRELOAD SHADERS from the F1 menu, they keep these stalls in every new area. A possible check, not tested: preload when the book names many more pipelines than the library holds. Another: preload once after the first run that wrote the book. #4231 keeps the book across translator updates, which covers players who update. This case is only about a cache that starts empty. *AI-assisted (Claude Code); all numbers are read from my own logs.*
TheKingOfDeath commented 2026-11-30 22:04:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheKingOfDeath on 2026-11-30T22:04:58Z.


Someone explain please thank you for your time

Capture d'écran 2026-11-30 230039
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7293320652 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7293320652). Originally posted by [TheKingOfDeath](https://github.com/TheKingOfDeath) on 2026-11-30T22:04:58Z. --- Someone explain please thank you for your time <img width="865" height="488" alt="Capture d&#39;écran 2026-11-30 230039" src="https://github.com/user-attachments/assets/5ea63f11-f471-4ab1-a517-5407a2a740b0" />
TheKingOfDeath commented 2026-12-01 00:50:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheKingOfDeath on 2026-12-01T00:50:17Z.


Update: after running victory.exe preload on the game folder, the lag is gone and I can now play about 28 minutes. Then the game crashes: the GPU stops responding (device lost, 0x887A0006).

Setup: RTX 5060 Ti 16 GB, Ryzen 7 5700X, 32 GB RAM, NVIDIA driver 621.40, DLSS quality, frame generation x2.

Log excerpt attached (the 28 min session). I'll test the next release and report back. Thanks!

log-crash-victory.txt

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7296797392 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7296797392). Originally posted by [TheKingOfDeath](https://github.com/TheKingOfDeath) on 2026-12-01T00:50:17Z. --- Update: after running `victory.exe preload` on the game folder, the lag is gone and I can now play about 28 minutes. Then the game crashes: the GPU stops responding (device lost, 0x887A0006). Setup: RTX 5060 Ti 16 GB, Ryzen 7 5700X, 32 GB RAM, NVIDIA driver 621.40, DLSS quality, frame generation x2. Log excerpt attached (the 28 min session). I'll test the next release and report back. Thanks! [log-crash-victory.txt](https://github.com/user-attachments/files/35649628/log-crash-victory.txt)
nidea1 commented 2026-12-01 03:14:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nidea1 on 2026-12-01T03:14:13Z.


Quick update on the preload fixes here: #4231 (a6b31f16e5) and 47f453b363 (running first-start preload without requiring frame generation) are now merged on main (post-v2026.11.30.03).

We also have 3 open, MERGEABLE follow-up PRs targeting the remaining cases noted above:

  • #4485 — fixes the empty-cache-start gap @ishan-2025 measured (where a non-empty host-pipelines.bin built during run 1 caused needs_pipelines() to skip preloading the newly recorded pipeline book on run 2).
  • #4410 — names warm pipeline library worker threads (victory-pipelines-*) so preload workers do not drop pipelines under soft physical-RAM throttle (aligning with @RsZoli's report).
  • #4387 — preserves VICTORY_KEEP_OLD_SHADERS=1 from the environment across play's prepare step.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7299490625 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7299490625). Originally posted by [nidea1](https://github.com/nidea1) on 2026-12-01T03:14:13Z. --- Quick update on the preload fixes here: #4231 (`a6b31f16e5`) and `47f453b363` (running first-start preload without requiring frame generation) are now merged on `main` (post-`v2026.11.30.03`). We also have 3 open, `MERGEABLE` follow-up PRs targeting the remaining cases noted above: - #4485 — fixes the empty-cache-start gap @ishan-2025 measured (where a non-empty `host-pipelines.bin` built during run 1 caused `needs_pipelines()` to skip preloading the newly recorded pipeline book on run 2). - #4410 — names `warm` pipeline library worker threads (`victory-pipelines-*`) so preload workers do not drop pipelines under soft physical-RAM throttle (aligning with @RsZoli's report). - #4387 — preserves `VICTORY_KEEP_OLD_SHADERS=1` from the environment across `play`'s `prepare` step.
Sign in to join this conversation.
No labels
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.

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