VICTORY_WAVE_FOLDED (on by default) costs 3-5x GPU time and gives Xid 13 MMU faults on an RTX 4090 #2278
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 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. WithVICTORY_WAVE_FOLDED=0on the same build, both go away.Setup
Results on main
829188e9(plus the PlayStation prompts of #937, which do not touch shaders)VICTORY_WAVE_FOLDED=0, coldVICTORY_WAVE_FOLDED=0, warmf9dfb76(before wave-4), warmThe 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:
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
VICTORY_WAVE_FOLDED=0against the default, to tell whether this also happens without vkd3d-proton.VICTORY_GPU_TIMING=1diagnostics build if a per-pipeline list would be useful.Until then,
VICTORY_WAVE_FOLDED=0is a working fallback on this machine.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.%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 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 putVICTORY_WAVE_FOLDED=0in 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 withVKD3D_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.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.
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--preloadthe 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by domx4q on 2026-11-29T11:46:53Z.
Follow-up with more runs:
VICTORY_WAVE_FOLDED=0removes 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:f9dfb76(before wave-4), run 1 (cold cache)f9dfb76, run 2829188e9+VICTORY_WAVE_FOLDED=0, run 1829188e9+VICTORY_WAVE_FOLDED=0, run 2829188e9+VICTORY_WAVE_FOLDED=0, run 3The 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.
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=0Machine: 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.
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.
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..829188e9with 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) andVICTORY_BVH_MISS=1(emit/intersect.rs);VICTORY_SAMPLED_MARKS=1adds a UAV mark per sampled heap texture plus a 30-frame sweep. I would try--set VICTORY_NAN_SCRUB=0first: 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.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), main829188e9, Series S, DLSS quality.What happens
CS_ShadowRenderTiledCascadesAlphaCBPPPC(shaderf133e35efed2a48a, pipeline key988d6e303de04badef08279d84661e8b) is translated in 1.8 s, but the driver's compile never ends:perfputs 95 % of the process's time inlibnvidia-gpucomp.so.615.78.08, and its memory keeps growing (0.7 → 1.7 GB in a minute).victory warmlists it inwarm-bad.txtas "hung for 180 s".VICTORY_WAVE_FOLDED=0the same pipeline compiles in about 20 s.VICTORY_WAVE_FOLDED_SKIP=CS_ShadowRenderTiledCascadesAlphaCBPPPCalso 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 withVICTORY_WAVE_FOLDED=0too.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).
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
829188e9build 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, withVICTORY_WAVE_FOLDED=0:f9dfb764d98ca87829188e9So 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_FOLDEDon (the default), 3–5× the GPU time and Xid 13 MMU faults.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):829188e9829188e9+ #937So #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_FOLDEDon, there are 3–5× the GPU time and Xid 13 MMU faults. That part reproduced on every run.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) withVICTORY_WAVE_FOLDEDleft at its default (on), I get 27.9 fps and no Xid. With=0on 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.