VICTORY_WAVE_FOLDED (on by default) costs 3-5x GPU time and gives Xid 13 MMU faults on an RTX 4090 #2278

Closed
opened 2026-11-29 11:18:10 +00:00 by domx4q · 10 comments
domx4q commented 2026-11-29 11:18:10 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T11:18:10Z.


Since the wave-4 merges (main 829188e9), VICTORY_WAVE_FOLDED (8f0a0c24, #1504, on by default) makes the GPU time a frame several times longer here, and the card reports MMU faults in the shader units. With VICTORY_WAVE_FOLDED=0 on the same build, both go away.

Setup

  • RTX 4090, driver 620.73.04, i9-14900KF, 62 GB
  • Linux with Proton Experimental 11 and vkd3d-proton master. Not measured on Windows.
  • Series X profile, DLSS quality, 1440p, frame generation 2x
  • Same save (the int_chase scene), fixed 330 s runs with scripted input, one run at a time

Results on main 829188e9 (plus the PlayStation prompts of #937, which do not touch shaders)

fps GPU ms a frame Xid
default, cold shader cache 10.9 up to 56 0
default, warm cache 11.9 16–56 5× Xid 13
VICTORY_WAVE_FOLDED=0, cold 22.7 6.4 avg 1
VICTORY_WAVE_FOLDED=0, warm 19.3 11.2 avg 0
f9dfb76 (before wave-4), warm 23.2 6–14 0

The default runs also had one crash: a third run, from the apartment save, crashed after about two minutes.

The Xid 13 lines from the default runs:

NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 5, TPC 1, SM 0): MMU Fault
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 9, TPC 5, SM 0): MMU Fault
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: ESR 0x52cf30=0x80d0017 …

A warp's MMU fault suggests that a folded program reads or writes outside its buffers on a 32-lane card, and the extra GPU time fits the folded programs running far longer than the forms they replace. #1590 ran into something similar with the write-only last resort ("4–7 fps … 150–250 ms of GPU time"), which ended up off by default.

What would help narrow it down

  • Someone on Windows with a 32-lane card trying VICTORY_WAVE_FOLDED=0 against the default, to tell whether this also happens without vkd3d-proton.
  • Which folded programs cost the time. I can run a VICTORY_GPU_TIMING=1 diagnostics build if a per-pipeline list would be useful.

Until then, VICTORY_WAVE_FOLDED=0 is a working fallback on this machine.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6678062794 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278). Originally posted by [domx4q](https://github.com/domx4q) on 2026-11-29T11:18:10Z. --- Since the wave-4 merges (main 829188e9), `VICTORY_WAVE_FOLDED` (8f0a0c24, #1504, on by default) makes the GPU time a frame several times longer here, and the card reports MMU faults in the shader units. With `VICTORY_WAVE_FOLDED=0` on the same build, both go away. **Setup** - RTX 4090, driver 620.73.04, i9-14900KF, 62 GB - Linux with Proton Experimental 11 and vkd3d-proton master. Not measured on Windows. - Series X profile, DLSS quality, 1440p, frame generation 2x - Same save (the int_chase scene), fixed 330 s runs with scripted input, one run at a time **Results on main 829188e9 (plus the PlayStation prompts of #937, which do not touch shaders)** | | fps | GPU ms a frame | Xid | |---|---|---|---| | default, cold shader cache | 10.9 | up to 56 | 0 | | default, warm cache | 11.9 | 16–56 | 5× Xid 13 | | `VICTORY_WAVE_FOLDED=0`, cold | 22.7 | 6.4 avg | 1 | | `VICTORY_WAVE_FOLDED=0`, warm | 19.3 | 11.2 avg | 0 | | f9dfb76 (before wave-4), warm | 23.2 | 6–14 | 0 | The default runs also had one crash: a third run, from the apartment save, crashed after about two minutes. The Xid 13 lines from the default runs: ``` NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 5, TPC 1, SM 0): MMU Fault NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics SM Warp Exception on (GPC 9, TPC 5, SM 0): MMU Fault NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=main, Graphics Exception: ESR 0x52cf30=0x80d0017 … ``` A warp's MMU fault suggests that a folded program reads or writes outside its buffers on a 32-lane card, and the extra GPU time fits the folded programs running far longer than the forms they replace. #1590 ran into something similar with the write-only last resort ("4–7 fps … 150–250 ms of GPU time"), which ended up off by default. **What would help narrow it down** - Someone on Windows with a 32-lane card trying `VICTORY_WAVE_FOLDED=0` against the default, to tell whether this also happens without vkd3d-proton. - Which folded programs cost the time. I can run a `VICTORY_GPU_TIMING=1` diagnostics build if a per-pipeline list would be useful. Until then, `VICTORY_WAVE_FOLDED=0` is a working fallback on this machine.
github-actions[bot] commented 2026-11-29 11:18:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T11:18: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.

  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:7255020233 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7255020233). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T11:18: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. 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)
birdneststream commented 2026-11-29 11:23:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by birdneststream on 2026-11-29T11:23:08Z.


A before/after data point from a similar host (RTX 5090, i9-13900KF, Linux, GE-Proton 11 + vkd3d-proton master, Series X, DLSS quality, frame generation 4x), not an A/B of the switch itself: the last session on the build before the waves (main 568c5e5d + a few PRs, so no folding) measured 0–2.6 ms of GPU time a frame at a 26 fps mean, CPU-bound throughout (12 minutes in the world, 8–9k draws in the heavy scenes). The #2129 logs from the 29.01 release show 3 → 23 ms in the same kind of scenes on a laptop 5090, which fits your 3–5×. I have put VICTORY_WAVE_FOLDED=0 in the run line of the Proton setup I maintain (README's fallbacks) on the strength of your table; no measurement of my own on it yet.

On the Xid 13: the other Xid 13/109 source on this driver family is the raw access chains path (VK_NV_raw_access_chains, vkd3d-proton #3142), disabled here with VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains — if your runs had that extension active, it would be worth one default run with the extension disabled, to tell a folding fault from a raw-access-chain fault in the same log.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255075305 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7255075305). Originally posted by [birdneststream](https://github.com/birdneststream) on 2026-11-29T11:23:08Z. --- A before/after data point from a similar host (RTX 5090, i9-13900KF, Linux, GE-Proton 11 + vkd3d-proton master, Series X, DLSS quality, frame generation 4x), not an A/B of the switch itself: the last session on the build **before** the waves (main 568c5e5d + a few PRs, so no folding) measured **0–2.6 ms of GPU time a frame** at a 26 fps mean, CPU-bound throughout (12 minutes in the world, 8–9k draws in the heavy scenes). The #2129 logs from the 29.01 release show 3 → 23 ms in the same kind of scenes on a laptop 5090, which fits your 3–5×. I have put `VICTORY_WAVE_FOLDED=0` in the run line of the Proton setup I maintain (README's fallbacks) on the strength of your table; no measurement of my own on it yet. On the Xid 13: the other Xid 13/109 source on this driver family is the raw access chains path (`VK_NV_raw_access_chains`, vkd3d-proton #3142), disabled here with `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` — if your runs had that extension active, it would be worth one default run with the extension disabled, to tell a folding fault from a raw-access-chain fault in the same log.
lcespirit commented 2026-11-29 11:36:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lcespirit on 2026-11-29T11:36:49Z.


I can run the Windows / 32-lane check you asked for. Starting it now.

  • RTX 5090 Laptop, 24,463 MiB, driver 621.40, Windows 11 build 26200
  • Core Ultra 9 275HX (24 threads), 64 GB
  • Series S profile, 1280x720 internal, DLSS quality, frame generation 2x
  • Same build as #2129 (v2026.11.29.01): 14 fps on 28.04 vs 9 fps on 29.01 in the same spot, ~10,700 draws

Plan: one run with --preload --set VICTORY_WAVE_FOLDED=0, then the same spot sampled for 30 s, against the default run I already have (9 fps, GPU 37-41 ms a frame). Note that changing this switch forces a full re-translate and pipeline rebuild here, so without --preload the run never gets past "draws dropped for pipelines not made yet" (2 fps, card 9% busy) ?that is why the earlier per-switch bisect failed.

I will post the numbers when the preload finishes (about 20 minutes). If there is anything else you want measured in the same run (GPU timing build, a log level), say now and I will include it.

Windows has no Xid lines; I can check the system event log for display driver resets (TDR) for the same window if that is of use.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255230847 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7255230847). Originally posted by [lcespirit](https://github.com/lcespirit) on 2026-11-29T11:36:49Z. --- I can run the Windows / 32-lane check you asked for. Starting it now. - RTX 5090 Laptop, 24,463 MiB, driver 621.40, Windows 11 build 26200 - Core Ultra 9 275HX (24 threads), 64 GB - Series S profile, 1280x720 internal, DLSS quality, frame generation 2x - Same build as #2129 (v2026.11.29.01): 14 fps on 28.04 vs 9 fps on 29.01 in the same spot, ~10,700 draws Plan: one run with `--preload --set VICTORY_WAVE_FOLDED=0`, then the same spot sampled for 30 s, against the default run I already have (9 fps, GPU 37-41 ms a frame). Note that changing this switch forces a full re-translate and pipeline rebuild here, so without `--preload` the run never gets past "draws dropped for pipelines not made yet" (2 fps, card 9% busy) ?that is why the earlier per-switch bisect failed. I will post the numbers when the preload finishes (about 20 minutes). If there is anything else you want measured in the same run (GPU timing build, a log level), say now and I will include it. Windows has no Xid lines; I can check the system event log for display driver resets (TDR) for the same window if that is of use.
domx4q commented 2026-11-29 11:46:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T11:46:53Z.


Follow-up with more runs: VICTORY_WAVE_FOLDED=0 removes the faults and most of the loss, but not all of it. Same scene, same settings, all runs with a warm shader cache unless noted:

build fps frame ms preparing ms
f9dfb76 (before wave-4), run 1 (cold cache) 23.3 45 28
f9dfb76, run 2 23.4 44 29
829188e9 + VICTORY_WAVE_FOLDED=0, run 1 18.2 56 27
829188e9 + VICTORY_WAVE_FOLDED=0, run 2 18.1 57 28
829188e9 + VICTORY_WAVE_FOLDED=0, run 3 18.2 57 27

The runs repeat within about ±0.1 fps. The remaining ~22 % is not on the CPU: preparing is the same, and the extra ~12 ms a frame goes to the card. So something else in f9dfb76..829188e9 adds GPU work on this setup (Linux, vkd3d-proton, RTX 4090). I can bisect it if nobody has an idea which change it is.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255345522 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7255345522). Originally posted by [domx4q](https://github.com/domx4q) on 2026-11-29T11:46:53Z. --- Follow-up with more runs: `VICTORY_WAVE_FOLDED=0` removes the faults and most of the loss, but not all of it. Same scene, same settings, all runs with a warm shader cache unless noted: | build | fps | frame ms | preparing ms | |---|---|---|---| | f9dfb76 (before wave-4), run 1 (cold cache) | 23.3 | 45 | 28 | | f9dfb76, run 2 | 23.4 | 44 | 29 | | 829188e9 + `VICTORY_WAVE_FOLDED=0`, run 1 | 18.2 | 56 | 27 | | 829188e9 + `VICTORY_WAVE_FOLDED=0`, run 2 | 18.1 | 57 | 28 | | 829188e9 + `VICTORY_WAVE_FOLDED=0`, run 3 | 18.2 | 57 | 27 | The runs repeat within about ±0.1 fps. The remaining ~22 % is not on the CPU: preparing is the same, and the extra ~12 ms a frame goes to the card. So something else in f9dfb76..829188e9 adds GPU work on this setup (Linux, vkd3d-proton, RTX 4090). I can bisect it if nobody has an idea which change it is.
lcespirit commented 2026-11-29 11:47:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lcespirit on 2026-11-29T11:47:19Z.


Windows / 32-lane result: VICTORY_WAVE_FOLDED=0 does recover GPU time here too, but there is a second cost on the CPU side.

Run: play --preload --series-s --dlss quality --framegen 2 --fps 60 --set VICTORY_LOG=info --set VICTORY_WAVE_FOLDED=0
Machine: RTX 5090 Laptop 24,463 MiB, driver 621.40, Windows 11 build 26200, Core Ultra 9 275HX (24 threads), 64 GB.
The preload matters: without it the same command never gets past "draws dropped for pipelines not made yet" (2 fps, card 9% busy), so this is a warm-cache run with no dropped draws.

run fps draws submit thread card queued per draw
28.04 14 10,765 ~60 ms 14-32 ms 6.6 us
29.01 default 9 10,630 ~63 ms 37-41 ms 10.4 us
29.01, WAVE_FOLDED=0 13-17 (avg 15.4) 6,844-8,951 57.1 ms 28.3 ms 8.6 us

Caveats, so you do not read more into it than there is: the saved scene has drifted between my runs (it is night and a different corner now), so the absolute fps of the third row is not comparable to the other two. The per-draw figure and the card queued time are the parts I would trust.

What it says: the card goes from 37-41 ms down to 28.3 ms, so on Windows the folded programs also cost about 10 ms a frame, and turning them off gives it back. No display driver reset or timeout in the Windows event log for the window (Windows has no Xid; the equivalent would be a TDR event in System, and there is none).

What it does not fix: the submitting thread stays at 57 ms and the per-draw cost is still ~30% above 28.04, which matches the SEEDS/HOST_WRITTEN lock in #2226 rather than anything shader-side. So at least two separate costs are in play, and WAVE_FOLDED=0 alone does not make 29.01 playable here (9 -> ~15 fps, where 28.04 gives 14 at a heavier draw count).

If you want a strict same-scene comparison I can preload the default configuration the same way and rerun an hour later at the same in-game spot; say if that is worth your time.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255350565 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7255350565). Originally posted by [lcespirit](https://github.com/lcespirit) on 2026-11-29T11:47:19Z. --- Windows / 32-lane result: VICTORY_WAVE_FOLDED=0 does recover GPU time here too, but there is a second cost on the CPU side. Run: `play --preload --series-s --dlss quality --framegen 2 --fps 60 --set VICTORY_LOG=info --set VICTORY_WAVE_FOLDED=0` Machine: RTX 5090 Laptop 24,463 MiB, driver 621.40, Windows 11 build 26200, Core Ultra 9 275HX (24 threads), 64 GB. The preload matters: without it the same command never gets past "draws dropped for pipelines not made yet" (2 fps, card 9% busy), so this is a warm-cache run with no dropped draws. | run | fps | draws | submit thread | card queued | per draw | |---|---|---|---|---|---| | 28.04 | 14 | 10,765 | ~60 ms | 14-32 ms | 6.6 us | | 29.01 default | 9 | 10,630 | ~63 ms | 37-41 ms | 10.4 us | | 29.01, WAVE_FOLDED=0 | 13-17 (avg 15.4) | 6,844-8,951 | 57.1 ms | 28.3 ms | 8.6 us | Caveats, so you do not read more into it than there is: the saved scene has drifted between my runs (it is night and a different corner now), so the absolute fps of the third row is not comparable to the other two. The per-draw figure and the card queued time are the parts I would trust. What it says: the card goes from 37-41 ms down to 28.3 ms, so on Windows the folded programs also cost about 10 ms a frame, and turning them off gives it back. No display driver reset or timeout in the Windows event log for the window (Windows has no Xid; the equivalent would be a TDR event in System, and there is none). What it does not fix: the submitting thread stays at 57 ms and the per-draw cost is still ~30% above 28.04, which matches the SEEDS/HOST_WRITTEN lock in #2226 rather than anything shader-side. So at least two separate costs are in play, and WAVE_FOLDED=0 alone does not make 29.01 playable here (9 -> ~15 fps, where 28.04 gives 14 at a heavier draw count). If you want a strict same-scene comparison I can preload the default configuration the same way and rerun an hour later at the same in-game spot; say if that is worth your time.
birdneststream commented 2026-11-29 12:49:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by birdneststream on 2026-11-29T12:49:28Z.


For the bisect of the remaining ~22 % on the 4090 (f9dfb76..829188e9 with folding off): the first log line names five switches the waves turned on, and two of them are shader-side by construction — VICTORY_NAN_SCRUB=1 (a NaN scrub in every translated shader, Lower::scrub_nan) and VICTORY_BVH_MISS=1 (emit/intersect.rs); VICTORY_SAMPLED_MARKS=1 adds a UAV mark per sampled heap texture plus a 30-frame sweep. I would try --set VICTORY_NAN_SCRUB=0 first: a scrub in every shader is the shape of a flat +12 ms on the card, while the marks are one write per sample. If it is not that, the wave-wide light path itself is not behind a switch, so the bisect would have to split the commits between the two.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256089141 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7256089141). Originally posted by [birdneststream](https://github.com/birdneststream) on 2026-11-29T12:49:28Z. --- For the bisect of the remaining ~22 % on the 4090 (`f9dfb76..829188e9` with folding off): the first log line names five switches the waves turned on, and two of them are shader-side by construction — `VICTORY_NAN_SCRUB=1` (a NaN scrub in every translated shader, `Lower::scrub_nan`) and `VICTORY_BVH_MISS=1` (`emit/intersect.rs`); `VICTORY_SAMPLED_MARKS=1` adds a UAV mark per sampled heap texture plus a 30-frame sweep. I would try `--set VICTORY_NAN_SCRUB=0` first: a scrub in every shader is the shape of a flat +12 ms on the card, while the marks are one write per sample. If it is not that, the wave-wide light path itself is not behind a switch, so the bisect would have to split the commits between the two.
Aiken-Project-A commented 2026-11-29 13:34:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aiken-Project-A on 2026-11-29T13:34:53Z.


Another data point, from an older driver on a 6 GB Turing card: here the folded form does not get as far as costing GPU time. One folded program never finishes compiling, and the game freezes waiting for it.

Setup: RTX 2060 6 GB (Turing), NVIDIA 615.78.08, Ryzen 9 4900H, 64 GB, Linux, Wine 11 (Proton branch) + vkd3d-proton master (71cae091), main 829188e9, Series S, DLSS quality.

What happens

  • CS_ShadowRenderTiledCascadesAlphaCBPPPC (shader f133e35efed2a48a, pipeline key 988d6e303de04badef08279d84661e8b) is translated in 1.8 s, but the driver's compile never ends: perf puts 95 % of the process's time in libnvidia-gpucomp.so.615.78.08, and its memory keeps growing (0.7 → 1.7 GB in a minute).
  • victory warm lists it in warm-bad.txt as "hung for 180 s".
  • In play the title asks for it in the first seconds (the F2 box says "1 shaders still compiling"). At the step from the loading screen into the world the frames stop, the card goes idle (0 %), and the title waits for that pipeline for good; the compile memory line stays at "1 running, 27 started, 26 finished". No Xid.
  • With VICTORY_WAVE_FOLDED=0 the same pipeline compiles in about 20 s. VICTORY_WAVE_FOLDED_SKIP=CS_ShadowRenderTiledCascadesAlphaCBPPPC also gets past it (the skip matches text in the container, not the hash).

The build before folding (63b902f) compiled the same program normally. A newer driver (620.x) may cope with it; I can't try one here right now. Given the GPU time measured above, I run with VICTORY_WAVE_FOLDED=0 too.

One thought: a time limit on a driver compile the title is waiting for (after which its draws are dropped, as for any pipeline not made yet) would turn one stuck compile into a missing effect instead of a frozen game.

Written with AI assistance (Claude).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256645732 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7256645732). Originally posted by [Aiken-Project-A](https://github.com/Aiken-Project-A) on 2026-11-29T13:34:53Z. --- Another data point, from an older driver on a 6 GB Turing card: here the folded form does not get as far as costing GPU time. One folded program never finishes compiling, and the game freezes waiting for it. **Setup:** RTX 2060 6 GB (Turing), NVIDIA 615.78.08, Ryzen 9 4900H, 64 GB, Linux, Wine 11 (Proton branch) + vkd3d-proton master (`71cae091`), main `829188e9`, Series S, DLSS quality. **What happens** - `CS_ShadowRenderTiledCascadesAlphaCBPPPC` (shader `f133e35efed2a48a`, pipeline key `988d6e303de04badef08279d84661e8b`) is translated in 1.8 s, but the driver's compile never ends: `perf` puts 95 % of the process's time in `libnvidia-gpucomp.so.615.78.08`, and its memory keeps growing (0.7 → 1.7 GB in a minute). - `victory warm` lists it in `warm-bad.txt` as "hung for 180 s". - In play the title asks for it in the first seconds (the F2 box says "1 shaders still compiling"). At the step from the loading screen into the world the frames stop, the card goes idle (0 %), and the title waits for that pipeline for good; the compile memory line stays at "1 running, 27 started, 26 finished". No Xid. - With `VICTORY_WAVE_FOLDED=0` the same pipeline compiles in about 20 s. `VICTORY_WAVE_FOLDED_SKIP=CS_ShadowRenderTiledCascadesAlphaCBPPPC` also gets past it (the skip matches text in the container, not the hash). The build before folding (`63b902f`) compiled the same program normally. A newer driver (620.x) may cope with it; I can't try one here right now. Given the GPU time measured above, I run with `VICTORY_WAVE_FOLDED=0` too. One thought: a time limit on a driver compile the title is waiting for (after which its draws are dropped, as for any pipeline not made yet) would turn one stuck compile into a missing effect instead of a frozen game. _Written with AI assistance (Claude)._
domx4q commented 2026-11-29 14:40:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T14:40:45Z.


Correction to my follow-up above: the remaining ~22 % is not in main. My 829188e9 build also carried a local merge of the PlayStation prompts PR (#937), and that is where the time goes. On plain main, same scene and same settings, with VICTORY_WAVE_FOLDED=0:

build fps frame ms
f9dfb76 23.3 / 23.4 45 / 44
4d98ca87 26.2 / 27.9 42 / 37
829188e9 28.3 36

So wave-4 is a clear gain here, about +20 %. Sorry for the noise. What stays is the first part of this issue: with VICTORY_WAVE_FOLDED on (the default), 3–5× the GPU time and Xid 13 MMU faults.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7257490945 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7257490945). Originally posted by [domx4q](https://github.com/domx4q) on 2026-11-29T14:40:45Z. --- Correction to my follow-up above: the remaining ~22 % is not in main. My 829188e9 build also carried a local merge of the PlayStation prompts PR (#937), and that is where the time goes. On plain main, same scene and same settings, with `VICTORY_WAVE_FOLDED=0`: | build | fps | frame ms | |---|---|---| | f9dfb76 | 23.3 / 23.4 | 45 / 44 | | 4d98ca87 | 26.2 / 27.9 | 42 / 37 | | 829188e9 | 28.3 | 36 | So wave-4 is a clear gain here, about +20 %. Sorry for the noise. What stays is the first part of this issue: with `VICTORY_WAVE_FOLDED` on (the default), 3–5× the GPU time and Xid 13 MMU faults.
domx4q commented 2026-11-29 15:26:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T15:26:50Z.


One more correction, now with interleaved runs (A, B, A, B, A, B, same scene and settings, VICTORY_WAVE_FOLDED=0):

run plain 829188e9 829188e9 + #937
1 28.4 28.4
2 28.3 28.5
3 28.2 28.3

So #937 costs nothing either. The 18 fps runs from this afternoon were three in a row and repeatable at the time, but now I cannot reproduce them on the same binary. My best guess is the state of the shader or pipeline caches after switching between many builds that day. I can't pin it on any code, so please ignore the "remaining 22 %". What this issue is about: with VICTORY_WAVE_FOLDED on, there are 3–5× the GPU time and Xid 13 MMU faults. That part reproduced on every run.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258095775 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7258095775). Originally posted by [domx4q](https://github.com/domx4q) on 2026-11-29T15:26:50Z. --- One more correction, now with interleaved runs (A, B, A, B, A, B, same scene and settings, `VICTORY_WAVE_FOLDED=0`): | run | plain 829188e9 | 829188e9 + #937 | |---|---|---| | 1 | 28.4 | 28.4 | | 2 | 28.3 | 28.5 | | 3 | 28.2 | 28.3 | So #937 costs nothing either. The 18 fps runs from this afternoon were three in a row and repeatable at the time, but now I cannot reproduce them on the same binary. My best guess is the state of the shader or pipeline caches after switching between many builds that day. I can't pin it on any code, so please ignore the "remaining 22 %". What this issue is about: with `VICTORY_WAVE_FOLDED` on, there are 3–5× the GPU time and Xid 13 MMU faults. That part reproduced on every run.
domx4q commented 2026-11-29 15:49:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T15:49:08Z.


Closing this: the first part doesn't reproduce either. On a fresh run of 829188e9 (+ #937, + the revert of #888 for an unrelated picture bug) with VICTORY_WAVE_FOLDED left at its default (on), I get 27.9 fps and no Xid. With =0 on the same binary I get 27.3 and 27.0.

The bad runs (11 fps, 16–56 ms of GPU time, Xid 13 MMU faults) all came in a stretch where I had switched between many builds within hours. The same binary is fine now, so whatever went wrong was state on my side, not something I can attribute to VICTORY_WAVE_FOLDED. Sorry for the noise. Lesson noted: interleaved A/B runs before filing.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258392244 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2278#issuecomment-7258392244). Originally posted by [domx4q](https://github.com/domx4q) on 2026-11-29T15:49:08Z. --- Closing this: the first part doesn't reproduce either. On a fresh run of 829188e9 (+ #937, + the revert of #888 for an unrelated picture bug) with `VICTORY_WAVE_FOLDED` left at its default (on), I get 27.9 fps and no Xid. With `=0` on the same binary I get 27.3 and 27.0. The bad runs (11 fps, 16–56 ms of GPU time, Xid 13 MMU faults) all came in a stretch where I had switched between many builds within hours. The same binary is fine now, so whatever went wrong was state on my side, not something I can attribute to `VICTORY_WAVE_FOLDED`. Sorry for the noise. Lesson noted: interleaved A/B runs before filing.
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#2278
No description provided.