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

Open
opened 2026-11-30 17:09:55 +00:00 by github-bot · 10 comments
Owner

@⁠ajmi982 on GitHub · 2026-11-30 17:04 UTC · original

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

**@⁠ajmi982** on GitHub · 2026-11-30 17:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176) same as yesterday. We get hotfixes (2-3-4-5) and stuff breaks :(
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 17:09:55 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 17:04 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-30 17:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285677464) 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

@⁠ajmi982 on GitHub · 2026-11-30 17:06 UTC · original

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

**@⁠ajmi982** on GitHub · 2026-11-30 17:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285730372) [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
Author
Owner

@⁠Dash-Tale on GitHub · 2026-11-30 17:07 UTC · original

yeah, same here

**@⁠Dash-Tale** on GitHub · 2026-11-30 17:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285754404) yeah, same here
Author
Owner

@⁠RsZoli on GitHub · 2026-11-30 17:13 UTC · original · edited 2026-11-30 17:14 UTC

same here, the fps is tanked also

image
**@⁠RsZoli** on GitHub · 2026-11-30 17:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7285908915) · edited 2026-11-30 17:14 UTC 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" />
Author
Owner

@⁠nidea1 on GitHub · 2026-11-30 17:37 UTC · original

Opened #4232 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.)

**@⁠nidea1** on GitHub · 2026-11-30 17:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7286610032) Opened #4232 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.)
Author
Owner

@⁠RsZoli on GitHub · 2026-11-30 19:18 UTC · original

Opened #4232 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!

**@⁠RsZoli** on GitHub · 2026-11-30 19:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7289180664) > Opened [#4232](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4232) 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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3941).) well, i'm using framegen as you can see on my screenshot and still were not every shader preloaded!
Author
Owner

@⁠ishan-2025 on GitHub · 2026-11-30 20:38 UTC · original

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.

#4232 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.

**@⁠ishan-2025** on GitHub · 2026-11-30 20:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7291257710) 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. #4232 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.*
Author
Owner

@⁠TheKingOfDeath on GitHub · 2026-11-30 22:04 UTC · original

Someone explain please thank you for your time

Capture d'écran 2026-11-30 230039
**@⁠TheKingOfDeath** on GitHub · 2026-11-30 22:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7293320652) 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" />
Author
Owner

@⁠TheKingOfDeath on GitHub · 2026-12-01 00:50 UTC · original

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

**@⁠TheKingOfDeath** on GitHub · 2026-12-01 00:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7296797392) 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)
Author
Owner

@⁠nidea1 on GitHub · 2026-12-01 03:14 UTC · original

Quick update on the preload fixes here: #4232 (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:

  • #4486 — 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).
  • #4411 — 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).
  • #4388 — preserves VICTORY_KEEP_OLD_SHADERS=1 from the environment across play's prepare step.
**@⁠nidea1** on GitHub · 2026-12-01 03:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4176#issuecomment-7299490625) Quick update on the preload fixes here: #4232 (`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: - #4486 — 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). - #4411 — 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). - #4388 — preserves `VICTORY_KEEP_OLD_SHADERS=1` from the environment across `play`'s `prepare` step.
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#4177
No description provided.