v2026.11.29.03 on RTX 3060 (Linux/Proton): heavy scenes drop to 2-4 fps with the partial wave64 folding; VICTORY_WAVE_FOLDED=0 avoids it #3173

Open
opened 2026-11-29 20:28:16 +00:00 by atorata · 2 comments
atorata commented 2026-11-29 20:28:16 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by atorata on 2026-11-29T20:28:16Z.


What you see

On an RTX 3060, v2026.11.29.03 drops to 2-4 fps in heavy open-world scenes (8,000+ draws a frame: busy roads, night at the petrol station), where v2026.11.29.02 held about 12. The card's time goes from tens of ms to 250-470 ms a frame in bursts. With --set VICTORY_WAVE_FOLDED=0 on .03 the bursts are gone, so it looks like the partial folding (05d1c564) is what costs this card.

Same PC, same settings, same save area, shaders preloaded with play --preload each time (cache hits 4,093-4,154, misses under 130; no pipelines left being made during the samples, averages 0-0.75). Numbers are the layer's own 5-second fps lines with more than 800 draws a frame:

.02 .03 (default) .03 + VICTORY_WAVE_FOLDED=0
samples 81 63 41
median fps 13.4 10.3 15.1
10th percentile fps 11.8 3.1 13.4
samples under 5 fps 0 16 0
samples with > 150 ms "on the GPU" 0 13 0
heavy scenes (>= 8,000 draws): mean fps 11.8 (16 samples) 4.2 (16 samples) no heavy samples in this run
mean draws a frame 6,532 6,129 4,998

Caveat on the last column: that run happened to stay in lighter areas, so it shows the bursts are absent there, not yet the heavy-scene figure. .02, which had folding off entirely, had no burst in heavy scenes either.

A stretch of the .03 default run (time, fps, preparing ms, ms on the GPU, draws, pipelines being made):

20:12:57  2.5  p=34.8 g=330.1 d=7434 mk=0
20:13:03  1.9  p=56.2 g=413.9 d=9786 mk=0
20:13:09  1.8  p=55.7 g=471.0 d=9757 mk=0
20:13:14  3.2  p=40.2 g=248.4 d=5474 mk=0
...
20:14:09 15.4  p=49.2 g=5.3   d=5019 mk=0

The card meter in the same run: 48.6 ms of title lists a frame (median), 84 % busy; with folding off on .03: 49.4 ms, 93 % busy, no bursts. So the steady cost is about the same; the bursts are what folding adds here.

GPU and driver

GeForce RTX 3060 12 GB (Ampere), NVIDIA 620.73.04

CPU, RAM and Windows version

Ryzen 7 5700X, 32 GB. Linux (CachyOS, kernel 7.3.6) with Proton Experimental 11.0-20261112 (wineserver with the view-tree patch from docs/linux-proton.md) and vkd3d-proton master 71cae091b beside victory.exe; VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, VKD3D_CONFIG=no_descriptor_heap.

VIctory release or commit

v2026.11.29.03 (cec481f4) built from source with cargo xwin, plus local patches that do not touch the shader translator: #2764 (miss output cleared), #3044 (raise bounds), the raise build fix of #2160's kind, #2034 (gpudetile through hlsl). The .02 runs had the same patches on f889bb07.

Settings

Series S, 960x540 to 1920x1080 with DLSS Performance, FSR 3 frame generation 2x, ray tracing off. Also VICTORY_KEEP_SHOWN=1, VICTORY_THIN_THREADS=12, VICTORY_TEXTURE_ROOM_PERCENT=90, VICTORY_VRAM_BUDGET_MB=10000, VICTORY_PROBE_NEUTRAL=1, VICTORY_AMBIENT_CHROMA_SCRUB=1, and the five switches of #2842 (FILL_TITLE, GPU_DETILE, HEAP_HOOKS, SETTLE_UNLOCKED, WAIT_SPIN=500), the same in all three columns.

Logs

Not attached in full (they hold local paths); the lines above are from them, and I can post any other line or counter you want from these runs.

Possibly related: #2891, #3107 (slower .03 on other cards, without the folding switch tried).

Are you working on a fix?

No. On this card VICTORY_WAVE_FOLDED=0 is the workaround I'm using; I haven't seen the tree flicker of #3142 with it so far, but I haven't looked for it on purpose.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6683743890 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3173). Originally posted by [atorata](https://github.com/atorata) on 2026-11-29T20:28:16Z. --- ### What you see On an RTX 3060, **v2026.11.29.03 drops to 2-4 fps in heavy open-world scenes** (8,000+ draws a frame: busy roads, night at the petrol station), where v2026.11.29.02 held about 12. The card's time goes from tens of ms to **250-470 ms a frame** in bursts. With `--set VICTORY_WAVE_FOLDED=0` on .03 the bursts are gone, so it looks like the partial folding (05d1c564) is what costs this card. Same PC, same settings, same save area, shaders preloaded with `play --preload` each time (cache hits 4,093-4,154, misses under 130; no pipelines left being made during the samples, averages 0-0.75). Numbers are the layer's own 5-second `fps` lines with more than 800 draws a frame: | | .02 | .03 (default) | .03 + `VICTORY_WAVE_FOLDED=0` | |---|---|---|---| | samples | 81 | 63 | 41 | | median fps | 13.4 | 10.3 | 15.1 | | 10th percentile fps | 11.8 | 3.1 | 13.4 | | samples under 5 fps | 0 | 16 | 0 | | samples with > 150 ms "on the GPU" | 0 | 13 | 0 | | **heavy scenes (>= 8,000 draws): mean fps** | **11.8** (16 samples) | **4.2** (16 samples) | no heavy samples in this run | | mean draws a frame | 6,532 | 6,129 | 4,998 | Caveat on the last column: that run happened to stay in lighter areas, so it shows the bursts are absent there, not yet the heavy-scene figure. .02, which had folding off entirely, had no burst in heavy scenes either. A stretch of the .03 default run (time, fps, preparing ms, ms on the GPU, draws, pipelines being made): ``` 20:12:57 2.5 p=34.8 g=330.1 d=7434 mk=0 20:13:03 1.9 p=56.2 g=413.9 d=9786 mk=0 20:13:09 1.8 p=55.7 g=471.0 d=9757 mk=0 20:13:14 3.2 p=40.2 g=248.4 d=5474 mk=0 ... 20:14:09 15.4 p=49.2 g=5.3 d=5019 mk=0 ``` The card meter in the same run: 48.6 ms of title lists a frame (median), 84 % busy; with folding off on .03: 49.4 ms, 93 % busy, no bursts. So the steady cost is about the same; the bursts are what folding adds here. ### GPU and driver GeForce RTX 3060 12 GB (Ampere), NVIDIA 620.73.04 ### CPU, RAM and Windows version Ryzen 7 5700X, 32 GB. **Linux** (CachyOS, kernel 7.3.6) with Proton Experimental 11.0-20261112 (wineserver with the view-tree patch from docs/linux-proton.md) and vkd3d-proton master `71cae091b` beside victory.exe; `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`, `VKD3D_CONFIG=no_descriptor_heap`. ### VIctory release or commit `v2026.11.29.03` (cec481f4) built from source with `cargo xwin`, plus local patches that do not touch the shader translator: #2764 (miss output cleared), #3044 (`raise` bounds), the `raise` build fix of #2160's kind, #2034 (gpudetile through hlsl). The .02 runs had the same patches on f889bb07. ### Settings Series S, 960x540 to 1920x1080 with DLSS Performance, FSR 3 frame generation 2x, ray tracing off. Also `VICTORY_KEEP_SHOWN=1`, `VICTORY_THIN_THREADS=12`, `VICTORY_TEXTURE_ROOM_PERCENT=90`, `VICTORY_VRAM_BUDGET_MB=10000`, `VICTORY_PROBE_NEUTRAL=1`, `VICTORY_AMBIENT_CHROMA_SCRUB=1`, and the five switches of #2842 (`FILL_TITLE`, `GPU_DETILE`, `HEAP_HOOKS`, `SETTLE_UNLOCKED`, `WAIT_SPIN=500`), the same in all three columns. ### Logs Not attached in full (they hold local paths); the lines above are from them, and I can post any other line or counter you want from these runs. Possibly related: #2891, #3107 (slower .03 on other cards, without the folding switch tried). ### Are you working on a fix? No. On this card `VICTORY_WAVE_FOLDED=0` is the workaround I'm using; I haven't seen the tree flicker of #3142 with it so far, but I haven't looked for it on purpose.
github-actions[bot] commented 2026-11-29 20:28:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T20:28:24Z.


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:7262107791 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3173#issuecomment-7262107791). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:28:24Z. --- 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)
nullexxx commented 2026-11-29 21:55:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nullexxx on 2026-11-29T21:55:28Z.


Same on an RTX 5080 16 GB under Linux/Proton, and a narrower workaround that keeps every shader translated.

PC: Ryzen 7 9800X3D, RTX 5080 16 GB (NVIDIA 620.73.04), 64 GB, CachyOS (KDE Wayland), GE-Proton11-15 (vkd3d-proton v3.1-97). Series S profile (scene 1113x626, output 1920x1080), DLSS Balanced preset K, DLSS frame generation 2x, ray tracing off, 30 fps cap.

Tree: main at cec481f4 (so 05d1c564 is in) plus some open PRs (#2173, #2174, #2175, #2226, #2261, #2433, #2455, #2493, #2530, #2608, #2853). VICTORY_WAVE_FOLDED unset unless said.

Same spot each run, layer's own 5-second fps lines and the card meter:

fps card time in the title's lists wave64 programs that do not translate
default (05d1c564's fold before the wave-wide forms, and as last resort) 7.7-8.8 99-123 ms 0
VICTORY_WAVE_FOLDED=0 (tree before 05d1c564) 22-27 25-28 ms 4 (34992f2b65a789a5, 6b82bc7d22016cb5, 7168dd781ca7efb9, 71883e40620a567a), dispatches dropped
only the last-resort fold (local switch below) 28.6-29.4 (at the cap) 25-29 ms 0

So on this card it is the fold before the wave-wide/approximate forms that costs the card time; the last-resort fold alone (programs no other form takes) translates the programs that were dropped, at no visible cost. Before 05d1c564, VICTORY_WAVE_FOLDED=1 (fold first) showed the same 100-140 ms bursts here, scene-dependent, with #2853 applied.

Local switch I used (keyed in the shader cache since it changes translations):

--- a/crates/victory-shader/src/fold.rs
+++ b/crates/victory-shader/src/fold.rs
+/// Whether, with folding off, a program is also folded *before* the wave-wide and
+/// approximate forms, not only as the true last resort. On unless `VICTORY_FOLD_BEFORE_WIDE=0`.
+pub fn before_wide() -> bool {
+    static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
+    *ON.get_or_init(|| std::env::var_os("VICTORY_FOLD_BEFORE_WIDE").is_none_or(|v| v != "0"))
+}
--- a/crates/victory-shader/src/emit/mod.rs
+++ b/crates/victory-shader/src/emit/mod.rs
-                if !crate::fold::enabled() && crate::fold::last_resort() && fold_named(c) {
+                if !crate::fold::enabled() && crate::fold::last_resort() && crate::fold::before_wide() && fold_named(c) {
--- a/crates/victory-gpu/src/shader_cache.rs
+++ b/crates/victory-gpu/src/shader_cache.rs
     "VICTORY_WAVE_FOLDED",
+    "VICTORY_FOLD_BEFORE_WIDE",

(In my tree that first condition also has && crate::fold::fits_host_regs(native.vgprs) from #2261; the bursts happened with it too, so the >126-VGPR programs are not the ones costing this.) I have not found which folded program runs long here: the GPU timing needs a diagnostics build, which does not compile on main at the moment (#2974). Logs on request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7263261624 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3173#issuecomment-7263261624). Originally posted by [nullexxx](https://github.com/nullexxx) on 2026-11-29T21:55:28Z. --- Same on an **RTX 5080 16 GB** under Linux/Proton, and a narrower workaround that keeps every shader translated. **PC:** Ryzen 7 9800X3D, RTX 5080 16 GB (NVIDIA 620.73.04), 64 GB, CachyOS (KDE Wayland), GE-Proton11-15 (vkd3d-proton v3.1-97). Series S profile (scene 1113x626, output 1920x1080), DLSS Balanced preset K, DLSS frame generation 2x, ray tracing off, 30 fps cap. **Tree:** main at cec481f4 (so 05d1c564 is in) plus some open PRs (#2173, #2174, #2175, #2226, #2261, #2433, #2455, #2493, #2530, #2608, #2853). `VICTORY_WAVE_FOLDED` unset unless said. Same spot each run, layer's own 5-second `fps` lines and the card meter: | | fps | card time in the title's lists | wave64 programs that do not translate | |---|---|---|---| | default (05d1c564's fold *before* the wave-wide forms, and as last resort) | 7.7-8.8 | 99-123 ms | 0 | | `VICTORY_WAVE_FOLDED=0` (tree before 05d1c564) | 22-27 | 25-28 ms | 4 (`34992f2b65a789a5`, `6b82bc7d22016cb5`, `7168dd781ca7efb9`, `71883e40620a567a`), dispatches dropped | | **only the last-resort fold** (local switch below) | **28.6-29.4** (at the cap) | **25-29 ms** | **0** | So on this card it is the fold *before* the wave-wide/approximate forms that costs the card time; the last-resort fold alone (programs no other form takes) translates the programs that were dropped, at no visible cost. Before 05d1c564, `VICTORY_WAVE_FOLDED=1` (fold first) showed the same 100-140 ms bursts here, scene-dependent, with #2853 applied. Local switch I used (keyed in the shader cache since it changes translations): ```diff --- a/crates/victory-shader/src/fold.rs +++ b/crates/victory-shader/src/fold.rs +/// Whether, with folding off, a program is also folded *before* the wave-wide and +/// approximate forms, not only as the true last resort. On unless `VICTORY_FOLD_BEFORE_WIDE=0`. +pub fn before_wide() -> bool { + static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new(); + *ON.get_or_init(|| std::env::var_os("VICTORY_FOLD_BEFORE_WIDE").is_none_or(|v| v != "0")) +} --- a/crates/victory-shader/src/emit/mod.rs +++ b/crates/victory-shader/src/emit/mod.rs - if !crate::fold::enabled() && crate::fold::last_resort() && fold_named(c) { + if !crate::fold::enabled() && crate::fold::last_resort() && crate::fold::before_wide() && fold_named(c) { --- a/crates/victory-gpu/src/shader_cache.rs +++ b/crates/victory-gpu/src/shader_cache.rs "VICTORY_WAVE_FOLDED", + "VICTORY_FOLD_BEFORE_WIDE", ``` (In my tree that first condition also has `&& crate::fold::fits_host_regs(native.vgprs)` from #2261; the bursts happened with it too, so the >126-VGPR programs are not the ones costing this.) I have not found which folded program runs long here: the GPU timing needs a diagnostics build, which does not compile on main at the moment (#2974). Logs on request.
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#3173
No description provided.