RTX 4080 / Win10: 27.2 fps median (28.6 max, 0 stutters >55 ms) — reproducible NVIDIA recipe & 3 NVIDIA GPU leads #143

Open
opened 2026-11-26 07:13:03 +00:00 by github-bot · 14 comments
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 07:11 UTC · original

Sharing reproducible RTX 4080 / Windows 10 measurements showing 27.2 fps median (28.6 fps max, 0 stutters >55 ms across 8 minutes of steady world gameplay) with native visuals (no blurry glass overlay, no black shards), plus three NVIDIA GPU leads that explain why the card still sits at ~100 W / 7% VRAM util.

Hardware & Test Setup

  • GPU / CPU / OS: RTX 4080 16 GB (P0, 2,805 MHz GPU / 11,201 MHz VRAM) · Intel i5-13600K (6P+8E, 14c/20t) · Windows 10 (D3D12 Agility SDK)
  • Game: GTA 6 --execute --console series-s, prison cell opening world scene (~4,500 draws/frame), 10-minute full recorded runs
  • Resolution & Quality: VICTORY_RENDER_SCALE=0.6666667 (720p internal → 1080p VICTORY_OWN_UPSCALER=1), VICTORY_COMPOSE=1, RT off (VICTORY_SKIP_PIPELINES skipping the 1,034 RT resolve/traced-shadow shaders), ambient lighting tuned (VICTORY_AMBIENT=0.75, VICTORY_AMBIENT_AIR=1.5, VICTORY_AMBIENT_MOST=2, VICTORY_AMBIENT_SHADE=1.1,0.6, VICTORY_AMBIENT_REFLECT=0.65, VICTORY_NAN_SCRUB=1)

Recipe: PR Stack + Key Env Vars for 25–27+ FPS on NVIDIA

Built on trustno1-coder/VIctory-NVIDIA (main, LTO + AVX2 release) with the following cherry-picked PRs:

  1. Core frame-pacing & async pipeline: avatarmanz/VIctory-7900XTX speed wave (0a43566..85d5641), #105 (VICTORY_PLACED_FORWARD), #107 (VICTORY_ALIAS_CAST), #119 (headroom-scaled VRAM spares — critical on 16 GB cards), #96 (8-shard dynamic descriptor pool), #97 (placed UAVs), #109 (divergent wave32 barrier guard), #82 (exact wave32 cascade shadows), #24/#42/#108/#114, fxceless#1044 (phys-core dstorage), fxceless#1146 (VICTORY_LAND_ASIDE=1), Marvisak#3037 (kernel_writing), Vertex GUARDS RwLock.
  2. Card compare reduction: fxceless#868 (VICTORY_SKIP_WC_COMPARE=1, VICTORY_SKIP_WC_BACK=1) — cut card compare passes 71% (79 → 23), pieces compared 52% (11,862 → 5,670), hash passes ~25–36% (121–141 → 92–109); 100% stable over multiple 10-minute runs.
  3. Visuals & anti-pop-in:
    • fxceless#907 (ForceEarlyDepthStencil) — completely eliminates the blurry window-glass square overlaying Lucia's hair in the prison cell.
    • fxceless#1264 (VICTORY_BAKE_SOURCES=1) — actively caught and uploaded 31–36 waiting character decoration-bake textures before their bake draws.
    • fxceless#1210 (preserve min-LOD on streamed texture views) + fxceless#1248 (VICTORY_TABLE_SETTLE=1 + extended RECHECK_FRAMES).
  4. DXIL Shader Optimization (real GPU speedup):
    • PastiiJay/klbf-lab#41 (DXIL pure LICM + canonical ptr-path non-aliasing LDS/private forwarding & DSE + adjacent dx.op.barrier dedup + canonical cmp/algebraic folds): +1.80 fps (-2.6 ms/frame) pure warm-cache GPU gain!
  5. Key Env Vars (on top of play-nvidia.ps1):
    VICTORY_RENDER_SCALE=0.6666667
    VICTORY_OWN_UPSCALER=1
    VICTORY_COMPOSE=1
    VICTORY_CARD_BUFFERS_MIN_MB=1      # keep 1 MB (see negative results below)
    VICTORY_CARD_BUFFERS_MB=1536
    VICTORY_LAND_ASIDE=1
    VICTORY_LAND_SKIP=1
    VICTORY_SKIP_WC_BACK=1
    VICTORY_SKIP_WC_COMPARE=1
    VICTORY_TARGET_FPS=120
    # Stutter elimination + fast streaming without P-core starvation:
    VICTORY_TEXTURE_STAGE_MB=512
    VICTORY_TEXTURE_STAGE_MS=50        # x3 catchup = 150 ms max (500 ms caused 1.5 s hitches)
    VICTORY_TEXTURE_CATCHUP=1
    VICTORY_PIPELINE_WAIT_MS=150       # play-nvidia.ps1's 10000 caused 12.7 s freezes!
    VICTORY_PIPELINE_WORKERS=6         # 16 at normal prio starved submitting thread (24 -> 41 ms)
    VICTORY_PIPELINE_LOWEST=1
    

Measured Progression (10-min Runs, Same Scene, release)

Run Stack Steady Median p90 / Max CPU Prep Worst World-Entry Hitch Stutters >55 ms (steady) Refused Pipelines
Pass 4 Base + fx#868 (SKIP_WC_COMPARE=1) 25.05 fps (40.0 ms) 26.7 / 26.8 fps 18.9 ms 659 ms 0 6
Pass 5 + fx#907 (EarlyDepth) + Smart GPU Barriers 25.40 fps (39.3 ms) 27.0 / 27.2 fps 19.9 ms 12,735 ms (WAIT_MS=10000, STAGE_MS=500) 0 6
Pass 6 + klbf#41 + klbf#50 + fx#1264/1210/1248 (cold cache, 16 normal workers) 22.10 fps (45.2 ms, CPU-bound compiling) 22.8 / 23.2 fps 36.1 ms 411 ms (31× better) 0 10 (see note)
Pass 7 Same Batch 7 (warm cache, 6 lowest-prio workers) 27.20 fps (36.7 ms, n=96 5s intervals) 27.8 / 28.6 fps (35.0 ms) 23.6 ms 255.7 ms (50× better) 0 / 96 10
  • GPU telemetry (Pass 7, 50 steady samples via nvidia-smi): P0, median 2,805 MHz GPU, 99.8 W (out of 320 W TDP), 99% GPU util, 7% VRAM util, max 12,809 MiB VRAM.
  • Note on klbf#50 (refused 6 → 10): #50's stricter write-only WAW/cyclic rejection refused 4 additional compute shaders on NVIDIA (89d08e561897d4e5, 55679a0547649d0b [skinning], 1f1fbd86759b3da2, caf96a3229145fa6) that upstream lds_meetings accepted cleanly. Reported directly on PastiiJay/klbf-lab#50.

What Hurt or Didn't Help (Saved Re-Testing)

  • VICTORY_CARD_BUFFERS_MIN_KB=64 (even with CARD_BUFFERS_MB=2048): caused 6 one-frame black shard flashes in 20 s (~18/min) vs 0 in 90 s at MIN_MB=1 / 1536 MB.
  • VICTORY_CARD_WINDOWS_MB=3072: 0 ms GPU speedup, +3 GB VRAM, +10 MB/frame uploads.
  • VICTORY_STREAM_COPY=1 / VICTORY_STREAM_REFRESH=1 (AVX2 non-temporal stores): +2.2 ms CPU regression on i5-13600K (L3 cache eviction on hot buffers).
  • VICTORY_PIPELINE_WORKERS=16 with VICTORY_PIPELINE_LOWEST=0: starved the submitting thread (that thread worked jumped from 24.4 ms → 41.7 ms) during cold-cache compiles.

3 High-Leverage Unused GPU Leads on NVIDIA (Why RTX 4080 Sits at 100 W / 7% VRAM / 99% Util)

Even at 2,805 MHz and 99% GPU util, the RTX 4080 is only drawing ~100 W (31% TDP) and 7% VRAM bandwidth — classic warp-stall / SM-drain symptoms:

  1. split_lds barrier storm on Wave32 (victory-shader/src/emit/lower.rs:5788): emits a full GroupMemoryBarrierWithGroupSync (dx.op.barrier) before every ds_read and ds_write in Wave64-split compute shaders, including consecutive read-after-read bursts and immediately after an s_barrier. Because loads sit between them, adjacent-barrier dedup (klbf#41) cannot drop them. Coalescing consecutive ds_reads and post-s_barrier accesses within all-lane blocks is sound and should cut BAR.SYNC stalls significantly.
  2. rdna_float gated off on NVIDIA (victory-shader/src/emit/lower.rs:1516): NVIDIA currently emits 21 DXIL instructions for every v_med3_f32 (even clamp(x, low, high) between ordered constants, which is 2 ops FMax/FMin and NaN-exact on NVIDIA too!), 10 extra ops for every v_max_f32/v_min_f32 (just for -0 vs +0), and 6 ops for every v_mul_legacy_f32 (even x * x or finite × non-zero constant).
  3. Global UAV barriers from barrier_groups: Inspecting single-element D3D12_BARRIER_GROUP structs + consecutive UAV dedup + removing redundant indirect UAV barriers cut ~165 global UAV barriers/frame, leaving ~595 emitted/frame — of which 178/frame (30%) are multi-element TYPE_TEXTURE groups (g.num > 1) still conservatively emitting a global UAV barrier.

Will test those 3 leads next on RTX 4080 and report back!

**@⁠Proudnoob4** on GitHub · 2026-11-26 07:11 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143) Sharing reproducible RTX 4080 / Windows 10 measurements showing **27.2 fps median (28.6 fps max, 0 stutters >55 ms across 8 minutes of steady world gameplay)** with native visuals (no blurry glass overlay, no black shards), plus three NVIDIA GPU leads that explain why the card still sits at ~100 W / 7% VRAM util. ### Hardware & Test Setup - **GPU / CPU / OS:** RTX 4080 16 GB (`P0`, 2,805 MHz GPU / 11,201 MHz VRAM) · Intel i5-13600K (6P+8E, 14c/20t) · Windows 10 (D3D12 Agility SDK) - **Game:** GTA 6 `--execute --console series-s`, prison cell opening world scene (~4,500 draws/frame), 10-minute full recorded runs - **Resolution & Quality:** `VICTORY_RENDER_SCALE=0.6666667` (720p internal → 1080p `VICTORY_OWN_UPSCALER=1`), `VICTORY_COMPOSE=1`, RT off (`VICTORY_SKIP_PIPELINES` skipping the 1,034 RT resolve/traced-shadow shaders), ambient lighting tuned (`VICTORY_AMBIENT=0.75`, `VICTORY_AMBIENT_AIR=1.5`, `VICTORY_AMBIENT_MOST=2`, `VICTORY_AMBIENT_SHADE=1.1,0.6`, `VICTORY_AMBIENT_REFLECT=0.65`, `VICTORY_NAN_SCRUB=1`) --- ### Recipe: PR Stack + Key Env Vars for 25–27+ FPS on NVIDIA Built on `trustno1-coder/VIctory-NVIDIA` (`main`, LTO + AVX2 `release`) with the following cherry-picked PRs: 1. **Core frame-pacing & async pipeline:** `avatarmanz/VIctory-7900XTX` speed wave (`0a43566..85d5641`), `#105` (`VICTORY_PLACED_FORWARD`), `#107` (`VICTORY_ALIAS_CAST`), `#119` (headroom-scaled VRAM spares — critical on 16 GB cards), `#96` (8-shard dynamic descriptor pool), `#97` (placed UAVs), `#109` (divergent wave32 barrier guard), `#82` (exact wave32 cascade shadows), `#24`/`#42`/`#108`/`#114`, `fxceless#1044` (phys-core dstorage), `fxceless#1146` (`VICTORY_LAND_ASIDE=1`), `Marvisak#3037` (`kernel_writing`), `Vertex` `GUARDS` RwLock. 2. **Card compare reduction:** `fxceless#868` (`VICTORY_SKIP_WC_COMPARE=1`, `VICTORY_SKIP_WC_BACK=1`) — cut card compare passes **71%** (`79 → 23`), pieces compared **52%** (`11,862 → 5,670`), hash passes **~25–36%** (`121–141 → 92–109`); 100% stable over multiple 10-minute runs. 3. **Visuals & anti-pop-in:** - `fxceless#907` (`ForceEarlyDepthStencil`) — completely eliminates the blurry window-glass square overlaying Lucia's hair in the prison cell. - `fxceless#1264` (`VICTORY_BAKE_SOURCES=1`) — actively caught and uploaded 31–36 waiting character decoration-bake textures before their bake draws. - `fxceless#1210` (preserve min-LOD on streamed texture views) + `fxceless#1248` (`VICTORY_TABLE_SETTLE=1` + extended `RECHECK_FRAMES`). 4. **DXIL Shader Optimization (real GPU speedup):** - `PastiiJay/klbf-lab#41` (DXIL pure LICM + canonical ptr-path non-aliasing LDS/private forwarding & DSE + adjacent `dx.op.barrier` dedup + canonical cmp/algebraic folds): **+1.80 fps (`-2.6 ms/frame`)** pure warm-cache GPU gain! 5. **Key Env Vars (on top of `play-nvidia.ps1`):** ```powershell VICTORY_RENDER_SCALE=0.6666667 VICTORY_OWN_UPSCALER=1 VICTORY_COMPOSE=1 VICTORY_CARD_BUFFERS_MIN_MB=1 # keep 1 MB (see negative results below) VICTORY_CARD_BUFFERS_MB=1536 VICTORY_LAND_ASIDE=1 VICTORY_LAND_SKIP=1 VICTORY_SKIP_WC_BACK=1 VICTORY_SKIP_WC_COMPARE=1 VICTORY_TARGET_FPS=120 # Stutter elimination + fast streaming without P-core starvation: VICTORY_TEXTURE_STAGE_MB=512 VICTORY_TEXTURE_STAGE_MS=50 # x3 catchup = 150 ms max (500 ms caused 1.5 s hitches) VICTORY_TEXTURE_CATCHUP=1 VICTORY_PIPELINE_WAIT_MS=150 # play-nvidia.ps1's 10000 caused 12.7 s freezes! VICTORY_PIPELINE_WORKERS=6 # 16 at normal prio starved submitting thread (24 -> 41 ms) VICTORY_PIPELINE_LOWEST=1 ``` --- ### Measured Progression (10-min Runs, Same Scene, `release`) | Run | Stack | Steady Median | p90 / Max | CPU Prep | Worst World-Entry Hitch | Stutters >55 ms (steady) | Refused Pipelines | |---|---|---:|---:|---:|---:|---:|---:| | Pass 4 | Base + `fx#868` (`SKIP_WC_COMPARE=1`) | **25.05 fps** (`40.0 ms`) | 26.7 / 26.8 fps | 18.9 ms | 659 ms | 0 | 6 | | Pass 5 | + `fx#907` (EarlyDepth) + Smart GPU Barriers | **25.40 fps** (`39.3 ms`) | 27.0 / 27.2 fps | 19.9 ms | 12,735 ms (`WAIT_MS=10000`, `STAGE_MS=500`) | 0 | 6 | | Pass 6 | + `klbf#41` + `klbf#50` + `fx#1264`/`1210`/`1248` (cold cache, 16 normal workers) | 22.10 fps (`45.2 ms`, CPU-bound compiling) | 22.8 / 23.2 fps | 36.1 ms | **411 ms** (31× better) | 0 | 10 *(see note)* | | **Pass 7** | **Same Batch 7 (warm cache, 6 lowest-prio workers)** | **27.20 fps** (`36.7 ms`, n=96 5s intervals) | **27.8 / 28.6 fps** (`35.0 ms`) | 23.6 ms | **255.7 ms** (50× better) | **0 / 96** | 10 | - **GPU telemetry (Pass 7, 50 steady samples via `nvidia-smi`):** `P0`, median **2,805 MHz** GPU, **99.8 W** (out of 320 W TDP), **99% GPU util**, **7% VRAM util**, max **12,809 MiB VRAM**. - **Note on `klbf#50` (`refused 6 → 10`):** `#50`'s stricter write-only WAW/cyclic rejection refused 4 additional compute shaders on NVIDIA (`89d08e561897d4e5`, `55679a0547649d0b` [skinning], `1f1fbd86759b3da2`, `caf96a3229145fa6`) that upstream `lds_meetings` accepted cleanly. Reported directly on `PastiiJay/klbf-lab#50`. --- ### What Hurt or Didn't Help (Saved Re-Testing) - **`VICTORY_CARD_BUFFERS_MIN_KB=64`** (even with `CARD_BUFFERS_MB=2048`): caused 6 one-frame black shard flashes in 20 s (~18/min) vs 0 in 90 s at `MIN_MB=1` / `1536 MB`. - **`VICTORY_CARD_WINDOWS_MB=3072`:** 0 ms GPU speedup, +3 GB VRAM, +10 MB/frame uploads. - **`VICTORY_STREAM_COPY=1` / `VICTORY_STREAM_REFRESH=1` (AVX2 non-temporal stores):** +2.2 ms CPU regression on i5-13600K (L3 cache eviction on hot buffers). - **`VICTORY_PIPELINE_WORKERS=16` with `VICTORY_PIPELINE_LOWEST=0`:** starved the submitting thread (`that thread worked` jumped from 24.4 ms → 41.7 ms) during cold-cache compiles. --- ### 3 High-Leverage Unused GPU Leads on NVIDIA (Why RTX 4080 Sits at 100 W / 7% VRAM / 99% Util) Even at 2,805 MHz and 99% GPU util, the RTX 4080 is only drawing ~100 W (31% TDP) and 7% VRAM bandwidth — classic warp-stall / SM-drain symptoms: 1. **`split_lds` barrier storm on Wave32 (`victory-shader/src/emit/lower.rs:5788`):** emits a full `GroupMemoryBarrierWithGroupSync` (`dx.op.barrier`) before *every* `ds_read` and `ds_write` in Wave64-split compute shaders, including consecutive read-after-read bursts and immediately after an `s_barrier`. Because loads sit between them, adjacent-barrier dedup (`klbf#41`) cannot drop them. Coalescing consecutive `ds_read`s and post-`s_barrier` accesses within all-lane blocks is sound and should cut `BAR.SYNC` stalls significantly. 2. **`rdna_float` gated off on NVIDIA (`victory-shader/src/emit/lower.rs:1516`):** NVIDIA currently emits 21 DXIL instructions for every `v_med3_f32` (even `clamp(x, low, high)` between ordered constants, which is 2 ops `FMax`/`FMin` and NaN-exact on NVIDIA too!), 10 extra ops for every `v_max_f32`/`v_min_f32` (just for `-0` vs `+0`), and 6 ops for every `v_mul_legacy_f32` (even `x * x` or finite × non-zero constant). 3. **Global UAV barriers from `barrier_groups`:** Inspecting single-element `D3D12_BARRIER_GROUP` structs + consecutive UAV dedup + removing redundant indirect UAV barriers cut ~165 global UAV barriers/frame, leaving ~595 emitted/frame — of which **178/frame (30%)** are multi-element `TYPE_TEXTURE` groups (`g.num > 1`) still conservatively emitting a global UAV barrier. Will test those 3 leads next on RTX 4080 and report back!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:13:03 +00:00
Author
Owner

@⁠gomeaw on GitHub · 2026-11-26 08:01 UTC · original

I picked up the split-LDS read-run lead in #152. The public synthetic fixture went from seven Wave32 barriers to four. Its Wave64 lowering kept one, and the Windows SDK validator accepted the optimized DXIL. The barriers that order reads against a later write or atomic are retained.

For a matched RTX run, baseline 1399744 and optimized 301e10e differ by this change and the shader cache version. Use the same checkpoint, profile, resolution and pipeline settings and warm both caches before sampling. GPU ms/frame and p95 Present interval would distinguish the shader benefit from CPU prep. If you prefer your tuned stack, the standalone commit to apply is bb61bb7.

The independent hardware check is cargo test --locked -p victory-shader --lib wave32_lds_read_runs_share_a_barrier -- --nocapture. It checks all 64 output lanes when a Wave32 adapter is available.

**@⁠gomeaw** on GitHub · 2026-11-26 08:01 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7186099712) I picked up the split-LDS read-run lead in #152. The public synthetic fixture went from seven Wave32 barriers to four. Its Wave64 lowering kept one, and the Windows SDK validator accepted the optimized DXIL. The barriers that order reads against a later write or atomic are retained. For a matched RTX run, [baseline `1399744`](https://github.com/gomeaw/VIctory-7900XTX/tree/1399744a9ae024a10380dbcfce4f4e899f64cced) and [optimized `301e10e`](https://github.com/gomeaw/VIctory-7900XTX/tree/301e10eb8e9fe19f045118f996bd66af4d78434d) differ by this change and the shader cache version. Use the same checkpoint, profile, resolution and pipeline settings and warm both caches before sampling. GPU ms/frame and p95 Present interval would distinguish the shader benefit from CPU prep. If you prefer your tuned stack, the standalone commit to apply is `bb61bb7`. The independent hardware check is `cargo test --locked -p victory-shader --lib wave32_lds_read_runs_share_a_barrier -- --nocapture`. It checks all 64 output lanes when a Wave32 adapter is available.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 08:12 UTC · original

Update (Batch 8 + Batch 9 verified 10-minute RTX 4080 runs)

We tested two more batches on RTX 4080 16 GB / i5-13600K / Windows 10 (--console series-s, render_scale=0.6667, RT skipped, full 10-minute recorded runs):

1. Window glass / transmission shader + 5 more Wave32 shaders recovered (10 → 4 refused)

  • Frosted window glass fix (2da4beb386509b77, CS_AlphTransmissionPrefilterMip): In crates/victory-shader/src/resource.rs, Tracer::descriptor() and Tracer::live() omitted per-instruction lanes.guards[at.0][at.1] when pruning dead join edges (tracking at: Cell<Option<usize>> instead of Cell<Option<Site>>). Adding lanes.guards[at.0][at.1] to known recovers 2da4beb386509b77 cleanly on NVIDIA Wave32. Combined with fx#907 (ForceEarlyDepthStencil), the prison window now renders real frosted refraction properly behind Lucia's hair with zero blurry overlay.
  • 5 more compute pipelines recovered on Wave32:
    • 369cbe906ea72764 recovered via single-latch s_andn2_wrexec_b64 + s_cbranch_scc1 active-loop widening (emit/mod.rs) + restored_lanes / scc_some / ordered-LDS lane_uniform (resource.rs, lower.rs).
    • 89d08e561897d4e5, 55679a0547649d0b, 1f1fbd86759b3da2, caf96a3229145fa6 recovered on klbf#50 (lds.rs) by tracking has_plain_read separately from Kind::Rmw (details posted on PastiiJay/klbf-lab#50).
    • Only 4 refused compute pipelines remain (02384a60fda6f2d0, 6b82bc7d22016cb5, 5dc3b25986622949, 6f225b641c5b0708), 0 untranslated.

2. Loading, streaming & stability wins

  • DirectStorage staging floor (VICTORY_DSTORAGE_STAGING_MB=256, up from 32 MiB) in dstorage.rs prevents multi-MB RPF chunks from starving worker threads during world entry/streaming.
  • WaitOnAddress / WakeByAddressAll blocking fence waits in fence.rs, immediate Detached::release_tables() on GPU completion (list.rs + host.rs instead of holding dynamic descriptor slots across bury_lag=16), VICTORY_INDIRECT_REST=0 default (indirect.rs), and XMA audio skipped-frame/refill fixes (audio.rs).
  • Pass 10 full 10-min result (n=88 settled 5s intervals, making=0, cold-cache startup -> world entry 94.6 s, settled 199.3 s):
    • Median 25.55 fps (39.1 ms/frame, p10 24.50, p90 27.10, max 28.20), worst settled frame 46.3 ms, 0 steady stutters >55 ms
    • Rendering 4,520 draws/frame (+220 more real draws/frame with the 6 recovered shaders + VICTORY_INDIRECT_REST=0)
    • 0.9 MB/frame copy-back, 13,345 MiB median / 13,563 MiB peak VRAM

3. Key GPU bottleneck clue (Batch 8 A/B -> profiling now)

In Batch 8 (Pass 9 warm, n=71), combining split_lds read-after-read / post-s_barrier coalescing + NVIDIA fast float (MAX_MIN|LEGACY|MED3) + 64-byte multi-element D3D12_TEXTURE_BARRIER inspection (tex_multi_kept: 178 → 0, -30 global UAV barriers/frame) was flat (27.00 fps / 37.1 ms vs Pass 7 27.20 fps / 36.7 ms), while the RTX 4080 sits at ~98 W (~30% TDP), 99% GPU util, 6–7% VRAM util. That proves we are not shader-ALU bound — next run is diag + VICTORY_GPU_TIMING=1 + VICTORY_D3D12_DRED=1 on the warm cache to post the exact per-list GPU breakdown (title's vs preludes vs steps vs compares vs others) and attack whatever owns those ~37–39 ms.

**@⁠Proudnoob4** on GitHub · 2026-11-26 08:12 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7186316661) ### Update (Batch 8 + Batch 9 verified 10-minute RTX 4080 runs) We tested two more batches on **RTX 4080 16 GB / i5-13600K / Windows 10** (`--console series-s`, `render_scale=0.6667`, RT skipped, full 10-minute recorded runs): #### 1. Window glass / transmission shader + 5 more Wave32 shaders recovered (`10 → 4` refused) - **Frosted window glass fix (`2da4beb386509b77`, `CS_AlphTransmissionPrefilterMip`):** In `crates/victory-shader/src/resource.rs`, `Tracer::descriptor()` and `Tracer::live()` omitted per-instruction `lanes.guards[at.0][at.1]` when pruning dead join edges (tracking `at: Cell<Option<usize>>` instead of `Cell<Option<Site>>`). Adding `lanes.guards[at.0][at.1]` to `known` recovers `2da4beb386509b77` cleanly on NVIDIA Wave32. Combined with `fx#907` (`ForceEarlyDepthStencil`), the prison window now renders real frosted refraction properly behind Lucia's hair with zero blurry overlay. - **5 more compute pipelines recovered on Wave32:** - `369cbe906ea72764` recovered via single-latch `s_andn2_wrexec_b64` + `s_cbranch_scc1` active-loop widening (`emit/mod.rs`) + `restored_lanes` / `scc_some` / ordered-LDS `lane_uniform` (`resource.rs`, `lower.rs`). - `89d08e561897d4e5`, `55679a0547649d0b`, `1f1fbd86759b3da2`, `caf96a3229145fa6` recovered on `klbf#50` (`lds.rs`) by tracking `has_plain_read` separately from `Kind::Rmw` (details posted on `PastiiJay/klbf-lab#50`). - Only **4** refused compute pipelines remain (`02384a60fda6f2d0`, `6b82bc7d22016cb5`, `5dc3b25986622949`, `6f225b641c5b0708`), `0` untranslated. #### 2. Loading, streaming & stability wins - **DirectStorage staging floor (`VICTORY_DSTORAGE_STAGING_MB=256`, up from 32 MiB)** in `dstorage.rs` prevents multi-MB RPF chunks from starving worker threads during world entry/streaming. - **`WaitOnAddress` / `WakeByAddressAll`** blocking fence waits in `fence.rs`, immediate **`Detached::release_tables()`** on GPU completion (`list.rs` + `host.rs` instead of holding dynamic descriptor slots across `bury_lag=16`), **`VICTORY_INDIRECT_REST=0`** default (`indirect.rs`), and XMA audio skipped-frame/refill fixes (`audio.rs`). - **Pass 10 full 10-min result (`n=88` settled 5s intervals, `making=0`, cold-cache startup -> world entry `94.6 s`, settled `199.3 s`):** - Median **`25.55 fps`** (`39.1 ms/frame`, `p10 24.50`, `p90 27.10`, `max 28.20`), worst settled frame **`46.3 ms`**, **`0` steady stutters `>55 ms`** - Rendering **`4,520` draws/frame** (+220 more real draws/frame with the 6 recovered shaders + `VICTORY_INDIRECT_REST=0`) - **`0.9 MB/frame` copy-back**, **`13,345 MiB` median / `13,563 MiB` peak VRAM** #### 3. Key GPU bottleneck clue (Batch 8 A/B -> profiling now) In Batch 8 (Pass 9 warm, `n=71`), combining `split_lds` read-after-read / post-`s_barrier` coalescing + NVIDIA fast float (`MAX_MIN|LEGACY|MED3`) + 64-byte multi-element `D3D12_TEXTURE_BARRIER` inspection (`tex_multi_kept: 178 → 0`, `-30` global UAV barriers/frame) was **flat** (`27.00 fps / 37.1 ms` vs Pass 7 `27.20 fps / 36.7 ms`), while the RTX 4080 sits at **`~98 W` (~30% TDP), `99%` GPU util, `6–7%` VRAM util**. That proves we are **not** shader-ALU bound — next run is `diag` + `VICTORY_GPU_TIMING=1` + `VICTORY_D3D12_DRED=1` on the warm cache to post the exact per-list GPU breakdown (`title's` vs `preludes` vs `steps` vs `compares` vs `others`) and attack whatever owns those `~37–39 ms`.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 08:52 UTC · original

SOLVED — VICTORY_FETCH_CHECK=1 eliminates the MIN_KB=64 black-shard flashes on RTX 4080 (32.0 fps median, 34.4 fps max, 0/60 corrupted frames)!

We found and verified the root cause of the 1-frame black-shard flashes we previously reported with VICTORY_CARD_BUFFERS_MIN_KB=64:

  • Root cause (host/torn.rs): With VICTORY_RELAY_COPY=1, the copy queue fetches small <1 MiB dynamic buffers back while a later flight is clearing/refilling them, landing torn intermediate bytes into the CPU side that later upload back over valid data.
  • Fix: Combine VICTORY_CARD_BUFFERS_MIN_KB=64 + VICTORY_CARD_BUFFERS_MB=2048 + VICTORY_FETCH_CHECK=1 + VICTORY_SKIP_WC_BACK=1 + VICTORY_SKIP_WC_COMPARE=1.
    • VICTORY_SKIP_WC_BACK=1 + VICTORY_SKIP_WC_COMPARE=1 keeps write-combining buffers off the copy-back path (0.3 MB/frame copy-back), so VICTORY_FETCH_CHECK=1 only has to verify ~52 pieces/frame.
    • VICTORY_FETCH_CHECK=1 actively caught and repaired 0.9–3.5 torn 64 KiB pieces per frame (100% recovered whole on re-fetch!).

Measured 10-minute RTX 4080 16 GB (Windows 10, i5-13600K, Series S render_scale=0.6667, RT skipped)

Run Settings World entry Settled median (n=109 / 114) Tail-40 median Peak FPS Copy-back Visual check
Pass 12 MIN_MB=1, CARD_BUFFERS_MB=1536 76.5 s 25.70 fps (38.9 ms) 25.90 fps 28.40 0.9 MB clean
Pass 13 MIN_KB=64, CARD_BUFFERS_MB=2048, FETCH_CHECK=1 70.1 s 32.00 fps (31.2 ms) 32.00 fps (worst 33.4 ms, 0 stutters >55 ms) 34.40 0.3 MB 0/60 black flashes across two 15 s / 2 fps burst contact sheets (t=420..435, t=520..535), native frosted glass intact

GPU wait dropped to 0.0 ms on the GPU (13,375 MiB peak VRAM, 104.7 W, 2805 MHz) — shifting the frame from GPU-bound to 100% CPU-bound (24.2 ms preparing + 6.7 ms copy-back).

**@⁠Proudnoob4** on GitHub · 2026-11-26 08:52 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7187125579) ### SOLVED — `VICTORY_FETCH_CHECK=1` eliminates the `MIN_KB=64` black-shard flashes on RTX 4080 (`32.0 fps` median, `34.4 fps` max, `0/60` corrupted frames)! We found and verified the root cause of the 1-frame black-shard flashes we previously reported with `VICTORY_CARD_BUFFERS_MIN_KB=64`: - **Root cause (`host/torn.rs`):** With `VICTORY_RELAY_COPY=1`, the copy queue fetches small `<1 MiB` dynamic buffers back while a later flight is clearing/refilling them, landing torn intermediate bytes into the CPU side that later upload back over valid data. - **Fix:** Combine **`VICTORY_CARD_BUFFERS_MIN_KB=64` + `VICTORY_CARD_BUFFERS_MB=2048` + `VICTORY_FETCH_CHECK=1` + `VICTORY_SKIP_WC_BACK=1` + `VICTORY_SKIP_WC_COMPARE=1`**. - `VICTORY_SKIP_WC_BACK=1` + `VICTORY_SKIP_WC_COMPARE=1` keeps write-combining buffers off the copy-back path (`0.3 MB/frame` copy-back), so `VICTORY_FETCH_CHECK=1` only has to verify `~52` pieces/frame. - `VICTORY_FETCH_CHECK=1` actively caught and repaired **`0.9–3.5` torn 64 KiB pieces per frame** (`100%` recovered whole on re-fetch!). #### Measured 10-minute RTX 4080 16 GB (Windows 10, i5-13600K, Series S `render_scale=0.6667`, RT skipped) | Run | Settings | World entry | Settled median (`n=109` / `114`) | Tail-40 median | Peak FPS | Copy-back | Visual check | |---|---|---:|---:|---:|---:|---:|---| | Pass 12 | `MIN_MB=1`, `CARD_BUFFERS_MB=1536` | `76.5 s` | `25.70 fps` (`38.9 ms`) | `25.90 fps` | `28.40` | `0.9 MB` | clean | | **Pass 13** | **`MIN_KB=64`, `CARD_BUFFERS_MB=2048`, `FETCH_CHECK=1`** | **`70.1 s`** | **`32.00 fps` (`31.2 ms`)** | **`32.00 fps` (worst `33.4 ms`, `0` stutters `>55 ms`)** | **`34.40`** | **`0.3 MB`** | **`0/60` black flashes across two 15 s / 2 fps burst contact sheets (`t=420..435`, `t=520..535`), native frosted glass intact** | GPU wait dropped to **`0.0 ms` on the GPU** (`13,375 MiB` peak VRAM, `104.7 W`, `2805 MHz`) — shifting the frame from GPU-bound to **100% CPU-bound** (`24.2 ms` preparing + `6.7 ms` copy-back).
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 14:39 UTC · original

Update — 32.00 fps median (32.70 tail-40 max, 0 tail stutters >55 ms, 0/230 black frames, full 4,505 draws/frame) + critical safety fix for MIN_KB=64 + SKIP_WC

Important follow-up to our previous Pass 13 note (MIN_KB=64 + FETCH_CHECK=1 + SKIP_WC_COMPARE=1):

  • Across 5 follow-up 10-minute runs, unguarded SKIP_WC_COMPARE=1 with VICTORY_CARD_BUFFERS_MIN_KB=64 reproduced 66–72% full-screen black frames (152/230 on 6733ddf) and silently dropped ~744 draws/frame (4,562 -> 3,818).
  • Root cause: 4,045 of GTA 6's 4,179 < 1 MiB buffers (45.8 MB) live in the 0x948a00000..0x998700000 write-combining (0x2404) heap. Skipping compare/copy-back on < 1 MiB WC buffers drops 263 pieces/frame (3.3 MB), causing the blackout and missing draws, while skipping >= 1 MiB WC buffers saves 516 pieces/frame (39.0 MB/frame) cleanly.
  • Fix (VICTORY_SKIP_WC_MIN_KB, default 1024 KiB): Gate SKIP_WC_COMPARE and SKIP_WC_BACK so only WC copies >= 1 MiB skip compare/copy-back, protecting all < 1 MiB WC buffers while still keeping them in fast VRAM (MIN_KB=64, CARD_BUFFERS_MB=2048, FETCH_CHECK=1).
  • Also ported PastiiJay/klbf-lab#57 shadow/watch optimizations (O(dirty) TOUCHED_CARDS, CopiedPages bitmask, FOUND_LOOSE, AVX2 diff/merge; verified with 0 runtime-oracle mismatches over 10 min / 31,249 log lines), cutting noting the runs -65% (~3.7 -> 1.28 ms) and finding the pages -82% (~0.28 -> 0.05 ms).

Verified 10-minute RTX 4080 / Win10 (i5-13600K, Series S 0.6667, RT skipped)

Run Config Settled med FPS Tail-40 med (max) Draws/fr Landed pieces (dirty MB) GPU busy BLACK (n=230)
Pass 14f MIN_MB=1, SKIP_WC=1 25.55 25.6 (28.1) 4,562 317 (4.6 MB) 99% 0/230
Pass 14g MIN_KB=64, SKIP_WC=0 26.85 26.9 (28.2) 4,525 833 (43.5 MB) 77% 0/230
Pass 15 MIN_KB=64, FETCH_CHECK=1, SKIP_WC_MIN_KB=1024 + klbf-lab#57 32.00 32.00 (32.70, 0 >55 ms) 4,505 317 (4.5 MB) 61% (~18 ms) 0/230 (120/120 bursts)

Next we are porting fxceless#1184 (VICTORY_HOIST_CLAMPS=1), #1274 (VICTORY_SECTION_MB=2), and #1276, then targeting the remaining victory-submit CPU bottleneck (32.8 ms working while RTX 4080 now sits 39% idle).

**@⁠Proudnoob4** on GitHub · 2026-11-26 14:39 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7195132310) ### Update — **`32.00 fps` median (`32.70` tail-40 max, `0` tail stutters `>55 ms`, `0/230` black frames, full `4,505` draws/frame)** + critical safety fix for `MIN_KB=64 + SKIP_WC` Important follow-up to our previous Pass 13 note (`MIN_KB=64 + FETCH_CHECK=1 + SKIP_WC_COMPARE=1`): - Across 5 follow-up 10-minute runs, **unguarded** `SKIP_WC_COMPARE=1` with `VICTORY_CARD_BUFFERS_MIN_KB=64` reproduced **66–72% full-screen black frames** (`152/230` on `6733ddf`) and silently dropped **~744 draws/frame** (`4,562 -> 3,818`). - **Root cause:** `4,045` of GTA 6's `4,179` `< 1 MiB` buffers (`45.8 MB`) live in the `0x948a00000..0x998700000` write-combining (`0x2404`) heap. Skipping compare/copy-back on `< 1 MiB` WC buffers drops `263` pieces/frame (`3.3 MB`), causing the blackout and missing draws, while skipping `>= 1 MiB` WC buffers saves `516` pieces/frame (`39.0 MB/frame`) cleanly. - **Fix (`VICTORY_SKIP_WC_MIN_KB`, default `1024` KiB):** Gate `SKIP_WC_COMPARE` and `SKIP_WC_BACK` so only WC copies `>= 1 MiB` skip compare/copy-back, protecting all `< 1 MiB` WC buffers while still keeping them in fast VRAM (`MIN_KB=64`, `CARD_BUFFERS_MB=2048`, `FETCH_CHECK=1`). - Also ported `PastiiJay/klbf-lab#57` shadow/watch optimizations (`O(dirty)` `TOUCHED_CARDS`, `CopiedPages` bitmask, `FOUND_LOOSE`, AVX2 diff/merge; verified with `0` runtime-oracle mismatches over 10 min / 31,249 log lines), cutting `noting the runs` `-65%` (`~3.7 -> 1.28 ms`) and `finding the pages` `-82%` (`~0.28 -> 0.05 ms`). #### Verified 10-minute RTX 4080 / Win10 (`i5-13600K`, Series S `0.6667`, RT skipped) | Run | Config | Settled med FPS | Tail-40 med (max) | Draws/fr | Landed pieces (dirty MB) | GPU busy | `BLACK` (`n=230`) | |---|---|---:|---:|---:|---|---:|---:| | Pass 14f | `MIN_MB=1`, `SKIP_WC=1` | `25.55` | `25.6` (`28.1`) | `4,562` | `317` (`4.6 MB`) | `99%` | `0/230` | | Pass 14g | `MIN_KB=64`, `SKIP_WC=0` | `26.85` | `26.9` (`28.2`) | `4,525` | `833` (`43.5 MB`) | `77%` | `0/230` | | **Pass 15** | **`MIN_KB=64`, `FETCH_CHECK=1`, `SKIP_WC_MIN_KB=1024` + klbf-lab#57** | **`32.00`** | **`32.00` (`32.70`, `0` >55 ms)** | **`4,505`** | **`317` (`4.5 MB`)** | **`61%` (~18 ms)** | **`0/230` (`120/120` bursts)** | Next we are porting `fxceless#1184` (`VICTORY_HOIST_CLAMPS=1`), `#1274` (`VICTORY_SECTION_MB=2`), and `#1276`, then targeting the remaining `victory-submit` CPU bottleneck (`32.8 ms` working while RTX 4080 now sits `39%` idle).
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 16:50 UTC · original

Quick NVIDIA (RTX 4080 16 GB / i5-13600K / Win 10, Series S 720p, VICTORY_JOIN_PARTS=8, 4,580 draws/frame) data point from porting Renderer Port 7 (34061929, VICTORY_PORT_JOURNAL=1) onto Proudnoob4/VIctory-NVIDIA (f53aa2b) and running a 10-min live A/B (0 errors, 0 black frames):

  • Baseline (VICTORY_PORT_JOURNAL=0, 4,505 draws/f): 32.0 fps (31.3 ms/f), submit worked 28.6 ms, descriptor heap_sync: ~200 changed heap pages / 98.9k slots -> 2.40 ms asking + 1.04 ms reading/comparing + 1.21 ms making = 4.65 ms
  • With VICTORY_PORT_JOURNAL=1 (4,580 draws/f): 30.8 fps (32.5 ms/f), submit worked 29.35 ms, lane waited 0.10 ms, descriptor heap_sync: 322.4 changed heap pages / 145.5k slots -> 3.38 ms asking + 1.83 ms reading/comparing + 1.88 ms making = 7.09 ms (+2.44 ms)

Why it regressed here: with VICTORY_JOIN_PARTS=8 collapsing 28 title submits/frame into 16.1 prepared batches, asking heap records at every title submit (28×/f) instead of once per joined batch (16×/f) scanned ~1.6× as many dirty heap pages/slots per frame. Glad it's opt-in OFF by default — sharing the telemetry in case batching/coalescing the title-submit heap asks helps both AMD and NVIDIA!

**@⁠Proudnoob4** on GitHub · 2026-11-26 16:50 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7198162891) Quick NVIDIA (RTX 4080 16 GB / i5-13600K / Win 10, Series S 720p, `VICTORY_JOIN_PARTS=8`, 4,580 draws/frame) data point from porting Renderer Port 7 (`34061929`, `VICTORY_PORT_JOURNAL=1`) onto `Proudnoob4/VIctory-NVIDIA` (`f53aa2b`) and running a 10-min live A/B (`0` errors, `0` black frames): - **Baseline (`VICTORY_PORT_JOURNAL=0`, 4,505 draws/f):** `32.0 fps` (`31.3 ms/f`), `submit worked 28.6 ms`, `descriptor heap_sync`: `~200` changed heap pages / `98.9k` slots -> **`2.40 ms` asking + `1.04 ms` reading/comparing + `1.21 ms` making = `4.65 ms`** - **With `VICTORY_PORT_JOURNAL=1` (4,580 draws/f):** `30.8 fps` (`32.5 ms/f`), `submit worked 29.35 ms`, `lane waited 0.10 ms`, `descriptor heap_sync`: **`322.4` changed heap pages / `145.5k` slots -> `3.38 ms` asking + `1.83 ms` reading/comparing + `1.88 ms` making = `7.09 ms` (`+2.44 ms`)** Why it regressed here: with `VICTORY_JOIN_PARTS=8` collapsing `28` title submits/frame into `16.1` prepared batches, asking heap records at every title submit (`28×/f`) instead of once per joined batch (`16×/f`) scanned ~1.6× as many dirty heap pages/slots per frame. Glad it's opt-in OFF by default — sharing the telemetry in case batching/coalescing the title-submit heap asks helps both AMD and NVIDIA!
Author
Owner

@⁠JoeY54 on GitHub · 2026-11-26 20:01 UTC · original

Thanks for the detailed NVIDIA work here. I have an RTX 5090 (32 GB) + Ryzen 9 9950X3D + 192 GB, plus an RTX 5060 Laptop and an RTX 2080 Ti. Next I'll measure upstream main on the 5090 (play.ps1 default, -Safe, and the Series S set from #213, with VICTORY_GPU_TIMING for a per-list breakdown) and post the numbers here. Your last update points at victory-submit as the bottleneck now, so a 9950X3D data point may show how far that scales.

To avoid duplicate work: which of the open NVIDIA leads (submit-thread CPU cost, heap-sync batching, the 4 remaining refused compute pipelines, ...) is nobody working on? I'm happy to take one, or to run your stack on the 5090 as an independent check. Raw logs and captures stay local; I only post aggregate numbers.


Generated by Claude Code

**@⁠JoeY54** on GitHub · 2026-11-26 20:01 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7202213677) Thanks for the detailed NVIDIA work here. I have an RTX 5090 (32 GB) + Ryzen 9 9950X3D + 192 GB, plus an RTX 5060 Laptop and an RTX 2080 Ti. Next I'll measure upstream `main` on the 5090 (play.ps1 default, `-Safe`, and the Series S set from #213, with `VICTORY_GPU_TIMING` for a per-list breakdown) and post the numbers here. Your last update points at `victory-submit` as the bottleneck now, so a 9950X3D data point may show how far that scales. To avoid duplicate work: which of the open NVIDIA leads (submit-thread CPU cost, heap-sync batching, the 4 remaining refused compute pipelines, ...) is nobody working on? I'm happy to take one, or to run your stack on the 5090 as an independent check. Raw logs and captures stay local; I only post aggregate numbers. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-26 20:37 UTC · original

@⁠JoeY54 thanks, a 9950X3D / 5090 / 192 GB data point is exactly what we're missing. On the NVIDIA side, as far as we know:

Taken (us, Proudnoob4/VIctory-NVIDIA nvidia-hybrid-v2)

  • The steady-state submit/landing CPU path. On our 13600K the card runs ~9 ms a frame by its GPU timestamps; the frame waits on our submitting thread (~23 ms a frame in release), landing's own work (~4.6 ms) and waits for the heaps' records (~5 ms).
  • The ray-tracing-off fallback that turns the intro cutscenes white.
  • The 4 refused compute pipelines (02384a60fda6f2d0, 6b82bc7d22016cb5, and the water transmission volumetrics 5dc3b25986622949 / 6f225b641c5b0708). I'm starting on those now.

Free

  • Heap-sync batching: ask for the heaps' records once per joined batch instead of at every title submit. In the Port Journal A/B above, asking at all 28 title submits a frame instead of 16 joined batches cost +2.44 ms (4.65 → 7.09 ms).

Most useful from your machine: the world-entry stall. After entering the world, our runs sit at 0.1-6 fps for roughly 2-4 minutes. In today's run on our 32 GB PC, the stall coincided with heavy hard paging: 8,700-23,500 page-ins a second (35-96 MB/s from disk), under 1 GB of RAM available, the whole PC at 8-17% CPU, and the emulator at 23 GB committed / 12-13 GB resident. With 192 GB you're the ideal control. If the time from the first in-world frame to steady fps collapses on your machine, the stall is mostly RAM, not the submit chain. One run is all we have so far, so that's a hypothesis, not a result.

To run our stack: build the head (2dea829) with cargo build --profile diag -p victory --features diagnostics and start it with scripts\play-nvidia.ps1 -Exe <your game executable> (the diag build is the script's default and what our numbers are of). The log's N fps, M ms/frame line every 5 s is enough to time the stall. If you can also run typeperf "\Memory\Pages Input/sec" "\Memory\Available MBytes" -si 2 alongside, it would show whether you page at all.

AI-assisted (Claude Code).

**@⁠Proudnoob4** on GitHub · 2026-11-26 20:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7202900391) @⁠JoeY54 thanks, a 9950X3D / 5090 / 192 GB data point is exactly what we're missing. On the NVIDIA side, as far as we know: **Taken (us, `Proudnoob4/VIctory-NVIDIA` `nvidia-hybrid-v2`)** - The steady-state submit/landing CPU path. On our 13600K the card *runs* ~9 ms a frame by its GPU timestamps; the frame waits on our submitting thread (~23 ms a frame in release), landing's own work (~4.6 ms) and waits for the heaps' records (~5 ms). - The ray-tracing-off fallback that turns the intro cutscenes white. - The 4 refused compute pipelines (`02384a60fda6f2d0`, `6b82bc7d22016cb5`, and the water transmission volumetrics `5dc3b25986622949` / `6f225b641c5b0708`). I'm starting on those now. **Free** - Heap-sync batching: ask for the heaps' records once per joined batch instead of at every title submit. In the Port Journal A/B above, asking at all 28 title submits a frame instead of 16 joined batches cost +2.44 ms (4.65 → 7.09 ms). **Most useful from your machine: the world-entry stall.** After entering the world, our runs sit at 0.1-6 fps for roughly 2-4 minutes. In today's run on our 32 GB PC, the stall coincided with heavy hard paging: 8,700-23,500 page-ins a second (35-96 MB/s from disk), under 1 GB of RAM available, the whole PC at 8-17% CPU, and the emulator at 23 GB committed / 12-13 GB resident. With 192 GB you're the ideal control. If the time from the first in-world frame to steady fps collapses on your machine, the stall is mostly RAM, not the submit chain. One run is all we have so far, so that's a hypothesis, not a result. To run our stack: build the head (`2dea829`) with `cargo build --profile diag -p victory --features diagnostics` and start it with `scripts\play-nvidia.ps1 -Exe <your game executable>` (the diag build is the script's default and what our numbers are of). The log's `N fps, M ms/frame` line every 5 s is enough to time the stall. If you can also run `typeperf "\Memory\Pages Input/sec" "\Memory\Available MBytes" -si 2` alongside, it would show whether you page at all. AI-assisted (Claude Code).
Author
Owner

@⁠davesousa on GitHub · 2026-11-26 22:02 UTC · original

RTX 3070 Ti 8 GB / Ryzen 7 3700X / 32 GB / Windows 11: on this 32 GB machine the world-entry stall is the pipeline wait, not RAM. After victory warm --used, it drops from 251 s to 85 s and its 8-9 s frames are gone. Steady state is about 14 fps.

Setup: RTX 3070 Ti 8 GB (Ampere, 32-lane waves), driver 621.40, Ryzen 7 3700X, 32 GB RAM (commit limit 57.8 GB), Windows 11 build 26200. nvidia-hybrid-v2 at 2dea829, diag build, scripts\play-nvidia.ps1 -NoSmoothMotion (Series S, 540p, RT shaders skipped), the prologue cell, 8-minute runs, Enter scripted through the menus, VICTORY_PIPELINE_BOOK=1. Same machine and settings for both columns; the only difference is the pipeline cache.

cold pipeline cache after victory warm --used (1,826 pipelines, 165 s)
world entry to 6 frame lines in a row under 120 ms 251 s 85 s
frame lines over 1 s after world entry 17, including 8.0-8.9 s frames for the first 2 minutes 0 (slowest 749 ms)
pipelines "being made" at world entry 704, falling to 0 27, falling to 0
free RAM during the stall (the log's memory: line) 2.5-3.5 GB 1.6-4.0 GB
steady frame, median 95 ms (about 10.5 fps) 70 ms (about 14 fps), p90 76 ms

In the cold run the stall's frames sit at the 10 s VICTORY_PIPELINE_WAIT_MS budget and end when "being made" reaches 0. Free RAM was higher during the stall than in the minute after it (0.6-1.1 GB, with frames already fast). I did not run typeperf, so paging on your machine isn't ruled out; the log's free-RAM figure is the only memory measure here.

This may matter for your A/B runs: crates/victory-gpu/build.rs keys the shader cache on the translator's source. So every build that changes the translator starts cold and pays this stall again, unless warm --used runs first. When warming, set the launcher's translator switches (VICTORY_NAN_SCRUB=1, VICTORY_BVH_MISS=1 and the RT skip list): crates/victory-shader/build.rs says their values join the cache key.

Other 8 GB notes: 6.9 GB of video memory in use, the card has no room 156 lines in the warmed run, 0 device removals, 0 refused dynamic tables. On this card the frame is close to GPU-bound now (nvidia-smi 84-100%). For comparison on the same machine, AvatarManz main + #47 #48 #42 with the fast defaults ran at 525 ms, and 291 ms with the #143 switches that build has.

Windows 11 26200's own D3D12 runtime is older than SDK 620, so the head's Agility exports fail here with 0x887E0003 unless D3D12\D3D12Core.dll is beside the exe. That is the case 1ef143d documents, so a current Windows 11 needs the DLL too. I made the two exports opt-in locally instead; the build ran normally on the in-box runtime.

AI-assisted (Claude Code); the runs are on my machine.

**@⁠davesousa** on GitHub · 2026-11-26 22:02 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7204297837) **RTX 3070 Ti 8 GB / Ryzen 7 3700X / 32 GB / Windows 11: on this 32 GB machine the world-entry stall is the pipeline wait, not RAM. After `victory warm --used`, it drops from 251 s to 85 s and its 8-9 s frames are gone. Steady state is about 14 fps.** Setup: RTX 3070 Ti 8 GB (Ampere, 32-lane waves), driver 621.40, Ryzen 7 3700X, 32 GB RAM (commit limit 57.8 GB), Windows 11 build 26200. `nvidia-hybrid-v2` at `2dea829`, `diag` build, `scripts\play-nvidia.ps1 -NoSmoothMotion` (Series S, 540p, RT shaders skipped), the prologue cell, 8-minute runs, Enter scripted through the menus, `VICTORY_PIPELINE_BOOK=1`. Same machine and settings for both columns; the only difference is the pipeline cache. | | cold pipeline cache | after `victory warm --used` (1,826 pipelines, 165 s) | |---|---:|---:| | world entry to 6 frame lines in a row under 120 ms | 251 s | 85 s | | frame lines over 1 s after world entry | 17, including 8.0-8.9 s frames for the first 2 minutes | 0 (slowest 749 ms) | | pipelines "being made" at world entry | 704, falling to 0 | 27, falling to 0 | | free RAM during the stall (the log's `memory:` line) | 2.5-3.5 GB | 1.6-4.0 GB | | steady frame, median | 95 ms (about 10.5 fps) | 70 ms (about 14 fps), p90 76 ms | In the cold run the stall's frames sit at the 10 s `VICTORY_PIPELINE_WAIT_MS` budget and end when "being made" reaches 0. Free RAM was higher during the stall than in the minute after it (0.6-1.1 GB, with frames already fast). I did not run `typeperf`, so paging on your machine isn't ruled out; the log's free-RAM figure is the only memory measure here. This may matter for your A/B runs: `crates/victory-gpu/build.rs` keys the shader cache on the translator's source. So every build that changes the translator starts cold and pays this stall again, unless `warm --used` runs first. When warming, set the launcher's translator switches (`VICTORY_NAN_SCRUB=1`, `VICTORY_BVH_MISS=1` and the RT skip list): `crates/victory-shader/build.rs` says their values join the cache key. Other 8 GB notes: 6.9 GB of video memory in use, `the card has no room` 156 lines in the warmed run, 0 device removals, 0 refused dynamic tables. On this card the frame is close to GPU-bound now (nvidia-smi 84-100%). For comparison on the same machine, AvatarManz `main` + #47 #48 #42 with the fast defaults ran at 525 ms, and 291 ms with the #143 switches that build has. Windows 11 26200's own D3D12 runtime is older than SDK 620, so the head's Agility exports fail here with `0x887E0003` unless `D3D12\D3D12Core.dll` is beside the exe. That is the case 1ef143d documents, so a current Windows 11 needs the DLL too. I made the two exports opt-in locally instead; the build ran normally on the in-box runtime. AI-assisted (Claude Code); the runs are on my machine.
Author
Owner

@⁠JoeY54 on GitHub · 2026-11-27 01:37 UTC · original

@⁠Proudnoob4 I'll take the world-entry stall control run on the 9950X3D / RTX 5090 / 192 GB machine.

Plan:

  • Read through nvidia-hybrid-v2 at 2dea829 first, then build it as you describe (cargo build --profile diag -p victory --features diagnostics) and start it with scripts\play-nvidia.ps1, with typeperf "\Memory\Pages Input/sec" "\Memory\Available MBytes" -si 2 alongside.
  • Two runs with a cold pipeline cache and two after victory warm --used, so the numbers can be read next to davesousa's 3070 Ti result above (251 s → 85 s).
  • Per run: time from the first in-world frame to steady fps, page-ins/s and available MB during the stall, pipelines "being made" at world entry, and the steady median.

One data point from this machine already: with #164's low-memory mode on (head 5a2f8c6, not your stack), a cold-cache run sat at about 2 fps for about 165 s while 322 queued pipelines drained, with about 198 GB of commit headroom (comment). That mode deliberately limits slow builds, so this only shows that a pipeline-wait stall can happen here without memory pressure.

Raw logs stay local; I'll post aggregate numbers here.

AI-assisted (Claude Code).

**@⁠JoeY54** on GitHub · 2026-11-27 01:37 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7207436274) @⁠Proudnoob4 I'll take the world-entry stall control run on the 9950X3D / RTX 5090 / 192 GB machine. Plan: - Read through `nvidia-hybrid-v2` at `2dea829` first, then build it as you describe (`cargo build --profile diag -p victory --features diagnostics`) and start it with `scripts\play-nvidia.ps1`, with `typeperf "\Memory\Pages Input/sec" "\Memory\Available MBytes" -si 2` alongside. - Two runs with a cold pipeline cache and two after `victory warm --used`, so the numbers can be read next to davesousa's 3070 Ti result above (251 s → 85 s). - Per run: time from the first in-world frame to steady fps, page-ins/s and available MB during the stall, pipelines "being made" at world entry, and the steady median. One data point from this machine already: with #164's low-memory mode on (head `5a2f8c6`, not your stack), a cold-cache run sat at about 2 fps for about 165 s while 322 queued pipelines drained, with about 198 GB of commit headroom ([comment](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/pulls/164)). That mode deliberately limits slow builds, so this only shows that a pipeline-wait stall can happen here without memory pressure. Raw logs stay local; I'll post aggregate numbers here. AI-assisted (Claude Code).
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-27 04:03 UTC · original

@⁠JoeY54 @⁠davesousa Quick heads-up before you run the 5090/9950X3D comparison: I just pushed our latest verified build to Proudnoob4/VIctory-NVIDIA (nvidia-hybrid-v2, 17161c7 + 4eeaae4) on top of 2dea829:

  • Win11 26200 0x887E0003 fixed (@⁠davesousa): ported runtime Agility SDK loading via ID3D12SDKConfiguration1 (Marvisak/VIctory#969), removing the static D3D12SDKVersion/D3D12SDKPath exports. Windows 11 without D3D12\D3D12Core.dll falls back cleanly to system d3d12.dll; Windows 10 loads D3D12\D3D12Core.dll dynamically when present (verified live on Win10 with Agility SDK 620).
  • Warm cache confirmed & automated (scripts\play-nvidia.ps1 -Warm): matching @⁠davesousa's 3070 Ti result, precompiling 25,689 shaders (victory shaders, 70.9 s) + 2,775 used PSOs (victory warm --used, 492.8 s across 12 processes; median 418.9 ms, p90 5,657.8 ms, max 62,291 ms, sum 4,668 CPU-s; only the 4 RT builder shaders refused) dropped runtime PSO compilation in a full 600 s prologue run to made=0 / loaded=2614. play-nvidia.ps1 now defaults to -Build release (with mimalloc), records VICTORY_PIPELINE_BOOK=1, and -Warm runs both warming steps with matching translator keys.
  • Measured on RTX 4080 16 GB / i5-13600K / 32 GB / Win10 (Series S 540p, 600 s runs, 0 device losses, 0 1-frame vertex stretches):
    • Uncapped (CARD_STEPS=1, KEEP_PAGES=0): Diner 31.3 fps med (17.8–40.4), Cell steady 38.3 fps (max 47.8), Hallway 41.9 fps (max 44.1), Common room 34.8–41.8 fps (max 44.8), Office 33.4–35.0 fps (max 47.4); AvailMB min rose from 30 MB -> 422 MB (med 3,168 MB, PagesIn/s med 1,686/s).
    • Locked native 30 fps (VICTORY_PRECISE_PACE=1 hybrid sleep+spin pacer, warm cache): Cell early 30.0 (30.0–30.0), Common room 30.0 (30.0–30.0), Office 30.0 (29.9–30.6) with 17.7–20.9 ms CPU prep.
  • Also folded in mimalloc (trustno1-coder#11), fxceless#1367 scratch chunk pool, fxceless#1377, fxceless#1407, fxceless#1422 skin-bake budget, KyleS98/034bdca, VICTORY_AFFINITY=free, VICTORY_LDS_LEGACY trees (oz-stanislav-zhukov@2ce00838), Dathinel/victory-4gb#15 haze clamp, and pure-clamp CS_RayMiss glass/specular handling.

Numbers and commit references only; AI-assisted (measured locally on the RTX 4080 / 13600K machine above).

**@⁠Proudnoob4** on GitHub · 2026-11-27 04:03 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7209486929) @⁠JoeY54 @⁠davesousa Quick heads-up before you run the 5090/9950X3D comparison: I just pushed our latest verified build to `Proudnoob4/VIctory-NVIDIA` (`nvidia-hybrid-v2`, [`17161c7`](https://github.com/Proudnoob4/VIctory-NVIDIA/commit/17161c7) + [`4eeaae4`](https://github.com/Proudnoob4/VIctory-NVIDIA/commit/4eeaae4)) on top of `2dea829`: - **Win11 26200 `0x887E0003` fixed** (@⁠davesousa): ported runtime Agility SDK loading via `ID3D12SDKConfiguration1` (`Marvisak/VIctory#969`), removing the static `D3D12SDKVersion`/`D3D12SDKPath` exports. Windows 11 without `D3D12\D3D12Core.dll` falls back cleanly to system `d3d12.dll`; Windows 10 loads `D3D12\D3D12Core.dll` dynamically when present (verified live on Win10 with Agility SDK 620). - **Warm cache confirmed & automated (`scripts\play-nvidia.ps1 -Warm`)**: matching @⁠davesousa's 3070 Ti result, precompiling 25,689 shaders (`victory shaders`, 70.9 s) + 2,775 used PSOs (`victory warm --used`, 492.8 s across 12 processes; median 418.9 ms, p90 5,657.8 ms, max 62,291 ms, sum 4,668 CPU-s; only the 4 RT builder shaders refused) dropped runtime PSO compilation in a full 600 s prologue run to **`made=0 / loaded=2614`**. `play-nvidia.ps1` now defaults to `-Build release` (with `mimalloc`), records `VICTORY_PIPELINE_BOOK=1`, and `-Warm` runs both warming steps with matching translator keys. - **Measured on RTX 4080 16 GB / i5-13600K / 32 GB / Win10 (Series S 540p, 600 s runs, 0 device losses, 0 1-frame vertex stretches)**: - Uncapped (`CARD_STEPS=1`, `KEEP_PAGES=0`): Diner **31.3 fps** med (`17.8–40.4`), Cell steady **38.3 fps** (`max 47.8`), Hallway **41.9 fps** (`max 44.1`), Common room **34.8–41.8 fps** (`max 44.8`), Office **33.4–35.0 fps** (`max 47.4`); `AvailMB min` rose from **30 MB -> 422 MB** (`med 3,168 MB`, `PagesIn/s med 1,686/s`). - Locked native 30 fps (`VICTORY_PRECISE_PACE=1` hybrid sleep+spin pacer, warm cache): Cell early **30.0** (`30.0–30.0`), Common room **30.0** (`30.0–30.0`), Office **30.0** (`29.9–30.6`) with `17.7–20.9 ms` CPU prep. - Also folded in `mimalloc` (`trustno1-coder#11`), `fxceless#1367` scratch chunk pool, `fxceless#1377`, `fxceless#1407`, `fxceless#1422` skin-bake budget, `KyleS98/034bdca`, `VICTORY_AFFINITY=free`, `VICTORY_LDS_LEGACY` trees (`oz-stanislav-zhukov@2ce00838`), `Dathinel/victory-4gb#15` haze clamp, and pure-clamp `CS_RayMiss` glass/specular handling. Numbers and commit references only; AI-assisted (measured locally on the RTX 4080 / 13600K machine above).
Author
Owner

@⁠JoeY54 on GitHub · 2026-11-27 06:06 UTC · original

RTX 5090 / 192 GB world-entry results

I ran two timed passes and one pilot on Windows with a Ryzen 9 9950X3D, RTX 5090, 192 GB RAM, and NVIDIA driver 621.24. I used Proudnoob4/VIctory-NVIDIA at 2dea829218c2f9699a5a42d19bdbfdcafffd564f, a diag build, and the Series S 540p profile with Smooth Motion disabled. The profile used the workload’s built-in upscaler.

For the timed passes, T=0 was the single manual Enter press that started loading. I used the first sharp rise in draws per frame as a proxy for world entry. Frame-rate summaries were logged roughly every five seconds.

Run World-entry proxy Next FPS sample Start of sustained ~20 FPS Median / peak Pages Input/sec Samples ≥8,700 pages/s
Timed 1 +31.3 s, 5.9 FPS +36.6 s, 13.2 FPS +103.6 s ~10 / 17,265 4
Timed 2 +30.9 s, 4.9 FPS +36.1 s, 17.6 FPS +103.3 s ~8 / 17,240 1
Pilot, reference only ~30.3 s, 5.8 FPS ~35.5 s, 15.9 FPS ~103.1 s ~17 / 17,388 6

The pilot had two Enter presses. Its offsets are relative to the first paging sample because I could not verify which press started loading.

Both timed passes reached sustained ~20 FPS about 72 seconds after the entry proxy. Neither reproduced the reported 2–4 minute stretch at 0.1–6 FPS. System-wide page-in spikes still occurred, while available memory stayed above roughly 143 GiB. The timed passes recovered at nearly the same point despite different numbers of high-paging samples. The counters do not identify which process caused the spikes, and this cross-machine comparison cannot isolate RAM capacity as the cause.

Separately, I’ve been working on a D3D12 DLSS Super Resolution component in FrameLab. It may be relevant to a future upscaler comparison. These runs used the built-in upscaler. FrameLab D3D12 SR work

**@⁠JoeY54** on GitHub · 2026-11-27 06:06 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7211222984) ### RTX 5090 / 192 GB world-entry results I ran two timed passes and one pilot on Windows with a Ryzen 9 9950X3D, RTX 5090, 192 GB RAM, and NVIDIA driver 621.24. I used `Proudnoob4/VIctory-NVIDIA` at `2dea829218c2f9699a5a42d19bdbfdcafffd564f`, a `diag` build, and the Series S 540p profile with Smooth Motion disabled. The profile used the workload’s built-in upscaler. For the timed passes, T=0 was the single manual Enter press that started loading. I used the first sharp rise in draws per frame as a proxy for world entry. Frame-rate summaries were logged roughly every five seconds. | Run | World-entry proxy | Next FPS sample | Start of sustained ~20 FPS | Median / peak `Pages Input/sec` | Samples ≥8,700 pages/s | |---|---:|---:|---:|---:|---:| | Timed 1 | +31.3 s, 5.9 FPS | +36.6 s, 13.2 FPS | +103.6 s | ~10 / 17,265 | 4 | | Timed 2 | +30.9 s, 4.9 FPS | +36.1 s, 17.6 FPS | +103.3 s | ~8 / 17,240 | 1 | | Pilot, reference only | ~30.3 s, 5.8 FPS | ~35.5 s, 15.9 FPS | ~103.1 s | ~17 / 17,388 | 6 | The pilot had two Enter presses. Its offsets are relative to the first paging sample because I could not verify which press started loading. Both timed passes reached sustained ~20 FPS about **72 seconds after the entry proxy**. Neither reproduced the reported 2–4 minute stretch at 0.1–6 FPS. System-wide page-in spikes still occurred, while available memory stayed above roughly **143 GiB**. The timed passes recovered at nearly the same point despite different numbers of high-paging samples. The counters do not identify which process caused the spikes, and this cross-machine comparison cannot isolate RAM capacity as the cause. Separately, I’ve been working on a D3D12 DLSS Super Resolution component in FrameLab. It may be relevant to a future upscaler comparison. These runs used the built-in upscaler. [FrameLab D3D12 SR work](https://github.com/5headsmartbtw/leonida-framelab/pull/36)
Author
Owner

@⁠JoeY54 on GitHub · 2026-11-27 09:29 UTC · original

RTX 5090 / 192 GB: cold vs warm pipeline cache at world entry

Follow-up to my earlier results (comment). Those passes turned out to be warm: each loaded the host pipeline library, and no pipelines were being made after world entry. So I reran with the cache controlled.

Setup: nvidia-hybrid-v2 at 2dea829, diag build, scripts\play-nvidia.ps1 -NoSmoothMotion (Series S 540p, RT shaders skipped), 9950X3D, RTX 5090, driver 621.24, 192 GB. Enter was scripted with VICTORY_KEYS (T0 = the press); 8-minute passes; typeperf page-ins/s and available MB every 2 s.

  • Cold: the pipeline library folder and the NVIDIA DX cache were moved aside before each pass; shader translations were kept.
  • Warm: victory warm --used from the cold passes' VICTORY_PIPELINE_BOOK=1 record (1,839 pipelines, 69 s), then two passes.

World entry = first 5 s sample with at least 300 draws/frame; steady = first of six samples in a row at or above 18 fps.

Pass Enter → world entry pipelines being made at entry (peak) entry → steady page-ins/s during it, median / peak min available
cold 1 49.7 s (0.2 fps) 331 (453) 92 s 89 / 12,861 139 GiB
cold 2 49.8 s (0.2 fps) 231 (322) 59 s 115 / 12,178 139 GiB
warm 1 32.0 s (6.5 fps) 0 (0) 58 s 94 / 13,314 140 GiB
warm 2 32.2 s (4.8 fps) 0 (2) 73 s 80 / 13,571 140 GiB

Steady state was about 20 fps in all four (median of the last 2 minutes: 20.4, 20.6, 20.2, 19.3).

  • Cold pays about 18 s more loading and starts the world at 0.2 fps with a few hundred pipelines in flight, which matches @⁠davesousa's pipeline-wait finding. Warm removes that.
  • Even warm, it takes about a minute from world entry to steady fps, with more than 139 GiB available and no sustained paging. So on this machine that minute is neither pipeline waits nor RAM.
  • None of the four passes showed the 2–4 minute stretch at 0.1–6 fps. With 192 GB the long stall doesn't reproduce here, cold or warm. That fits RAM pressure playing a part on 32 GB machines, but a different machine can't prove it.

Caveat: 20 DX cache files held open by other apps could not be moved, which may be why cold 2 made fewer pipelines than cold 1.

Raw logs stay local.

AI-assisted (Claude Code).

**@⁠JoeY54** on GitHub · 2026-11-27 09:29 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7214751577) ### RTX 5090 / 192 GB: cold vs warm pipeline cache at world entry Follow-up to my earlier results ([comment](https://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/143)). Those passes turned out to be warm: each loaded the host pipeline library, and no pipelines were being made after world entry. So I reran with the cache controlled. Setup: `nvidia-hybrid-v2` at `2dea829`, `diag` build, `scripts\play-nvidia.ps1 -NoSmoothMotion` (Series S 540p, RT shaders skipped), 9950X3D, RTX 5090, driver 621.24, 192 GB. Enter was scripted with `VICTORY_KEYS` (T0 = the press); 8-minute passes; `typeperf` page-ins/s and available MB every 2 s. - Cold: the pipeline library folder and the NVIDIA DX cache were moved aside before each pass; shader translations were kept. - Warm: `victory warm --used` from the cold passes' `VICTORY_PIPELINE_BOOK=1` record (1,839 pipelines, 69 s), then two passes. World entry = first 5 s sample with at least 300 draws/frame; steady = first of six samples in a row at or above 18 fps. | Pass | Enter → world entry | pipelines being made at entry (peak) | entry → steady | page-ins/s during it, median / peak | min available | |---|---:|---:|---:|---:|---:| | cold 1 | 49.7 s (0.2 fps) | 331 (453) | 92 s | 89 / 12,861 | 139 GiB | | cold 2 | 49.8 s (0.2 fps) | 231 (322) | 59 s | 115 / 12,178 | 139 GiB | | warm 1 | 32.0 s (6.5 fps) | 0 (0) | 58 s | 94 / 13,314 | 140 GiB | | warm 2 | 32.2 s (4.8 fps) | 0 (2) | 73 s | 80 / 13,571 | 140 GiB | Steady state was about 20 fps in all four (median of the last 2 minutes: 20.4, 20.6, 20.2, 19.3). - Cold pays about 18 s more loading and starts the world at 0.2 fps with a few hundred pipelines in flight, which matches @⁠davesousa's pipeline-wait finding. Warm removes that. - Even warm, it takes about a minute from world entry to steady fps, with more than 139 GiB available and no sustained paging. So on this machine that minute is neither pipeline waits nor RAM. - None of the four passes showed the 2–4 minute stretch at 0.1–6 fps. With 192 GB the long stall doesn't reproduce here, cold or warm. That fits RAM pressure playing a part on 32 GB machines, but a different machine can't prove it. Caveat: 20 DX cache files held open by other apps could not be moved, which may be why cold 2 made fewer pipelines than cold 1. Raw logs stay local. AI-assisted (Claude Code).
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-27 13:04 UTC · original

### Update (2026-11-27): Series X at internal 2560x1440, an FPS unlock that keeps game time real, and what limits it on a 32 GB PC

Same RTX 4080 16 GB / i5-13600K / 32 GB / Windows 10. Fork: Proudnoob4/VIctory-NVIDIA branch nvidia-hybrid-v2 at a6231671 (8 commits on 4eeaae4, all switches off by default unless noted).

Resolution. The output size is fixed per profile: Series S presents 1920x1080 and Series X 3840x2160 whatever VICTORY_DISPLAY_MODE reports (2560x1440 tried on both). So internal 2560x1440 is Series X with VICTORY_RENDER_SCALE=0.6667 (own upscaler, min = max). Scale 1.0 stops at the title's int3 at +0x2219650 on both profiles (t=6 s on S, t=26 s on X at 4K), which fits @⁠loftymocha's finding above that it is the allocator stopping on an empty pool (which pool on Series X is unmeasured; vitutu1/victory-perf's LARGER_HEAPS notes a 710 MiB transient render-target pool there against 297 MiB on S).

Frame pacing measured per frame. New 5 s log line (host.rs pace_line): present-to-present p50/p95/p99/max, frames over 2x the median and over 50 ms. The fps line samples one second in five and hides stutter. I also recorded every run at 165 fps (the panel's refresh) and counted how long each game frame stayed on screen.

run (Series X, 2560x1440 internal) gameplay fps (median) ms/frame = prep + GPU wait + copy-back p95 / max frame frames > 50 ms Diner intro below 20 fps
cap 60 (52a) 24.6 40.7 = 21.3 + 15.9 + 3.6 44.9 / 198 ms 69 77.6 -> 171.1 s
cap 60 + VICTORY_FILL_TITLE=1 (53a) 29.9 33.5 = 18.8 + 1.3 + 4.1 57 / 3050 ms 433 86.7 -> 169.8 s
cap 30 + FILL_TITLE=1, borderless (56a) 29.2 34.3 = 18.6 + 0.7 + 3.9 52 / 1383 ms 399 80.4 -> 134.6 s
same, browser closed (57b) 30.0 (min 24.0) 33.3 = 20.9 + 0.2 + 3.8 33.56 / 823 ms 66 (0.8 % over 2x median, mean change 0.36 ms) 85.1 -> 171.3 s
  • The Series X settle. Without FILL_TITLE every gameplay frame had exactly one settle, "title memory read by a fill of upload memory", waiting 15.9 ms for the card: the 480-byte constant ring fill in the 174 MB heap that is declared written as a whole. VICTORY_FILL_TITLE=1 removes it (+22 % median fps), but frame-to-frame change rose from 2.9 ms to 7-17 ms, and one run (54a) refused 40,932 draws in one burst when dynamic slots ran out.
  • Memory is the wall for Series X on 32 GB. During the Diner intro free RAM sat at 0.3-0.9 GB (97-99 % load), VRAM went 6 -> 15.9 GB used, MakeResident waits reached 0.95-1.65 s, and the cutscene showed 0.5-2.9 s holds. Loading screens and standing in the cell were a flat 33.33 ms. With a browser holding 8 GB (57a) world entry took 60 s longer and gameplay froze for 3-8 s; with it closed (57b, 17.9 GB free at launch) free RAM still fell to 0.35-0.75 GB in the intro, but gameplay was a locked 30 with p95 33.56 ms. Close the browser on 32 GB.
  • Descriptor heap. Every run (S and X) logs host view heap capped at 1000000 ... count=1245184 fitted=475711 dynamic=524288: the title wants 720,896 views and 245,184 of them read the null slot.
  • In-place constants (port of fxceless bcc54215, with a log of why it is turned down): the 174 MB heap is "not one run of a section: Scattered" with VICTORY_SECTION_MB=2 and also with 0, so it never applies here. That matches @⁠fubukiclears' three-window reading in #650.

FPS unlock (VICTORY_UNLOCK_FPS=30..1000, build 1.0.2.1 only, byte-checked). fwTimer::Update (0x22264d0) and UpdateClock (0x2226040) clamp the real QPC delta up to [0x6849844] = 1/get_target_fps (1/30), which is why uncapped frames ran the game faster. Patching get_target_fps (0x2241fd0) and the two preset loads (0x1e0fc62, 0x224359a) moves the floor, the title's QPC limiter and SetFrameIntervalX together. Series S: title screen 30 -> 142-165 fps; Diner 54.4 s at 33-35 fps vs 52.1 s locked at 30 (no speed-up). Pair it with VICTORY_TARGET_FPS at or below the unlock rate so presents never beat the floor (uncapped, the boot splash ran at 584-708 fps).

Other commits: VICTORY_FILE_CACHE (avatarmanz#423; first 3D frame 61.5 s vs 93.7 s, warm cache), VICTORY_BORDERLESS=1 (whole monitor, 3840x2160 shown at 2560x1440), VICTORY_PRESENT_SYNC=1..4 (sync interval for fixed-refresh panels; built and unit-tested, not yet run), the card_merge fast path (fxceless#1427), BC7 rotation (trustno1#23) and the cell's violet probe filter (trustno1#29). The levels-on-demand fix from ScarlettPort#64 was tried and backed out pending a run with enough free RAM.

**@⁠Proudnoob4** on GitHub · 2026-11-27 13:04 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7219018031) ### Update (2026-11-27): Series X at internal 2560x1440, an FPS unlock that keeps game time real, and what limits it on a 32 GB PC Same RTX 4080 16 GB / i5-13600K / 32 GB / Windows 10. Fork: `Proudnoob4/VIctory-NVIDIA` branch `nvidia-hybrid-v2` at [`a6231671`](https://github.com/Proudnoob4/VIctory-NVIDIA/commits/nvidia-hybrid-v2) (8 commits on `4eeaae4`, all switches off by default unless noted). **Resolution.** The output size is fixed per profile: Series S presents 1920x1080 and Series X 3840x2160 whatever `VICTORY_DISPLAY_MODE` reports (2560x1440 tried on both). So internal 2560x1440 is **Series X with `VICTORY_RENDER_SCALE=0.6667`** (own upscaler, min = max). Scale 1.0 stops at the title's `int3` at `+0x2219650` on both profiles (t=6 s on S, t=26 s on X at 4K), which fits @⁠loftymocha's finding above that it is the allocator stopping on an empty pool (which pool on Series X is unmeasured; vitutu1/victory-perf's `LARGER_HEAPS` notes a 710 MiB transient render-target pool there against 297 MiB on S). **Frame pacing measured per frame.** New 5 s log line (`host.rs` `pace_line`): present-to-present p50/p95/p99/max, frames over 2x the median and over 50 ms. The fps line samples one second in five and hides stutter. I also recorded every run at 165 fps (the panel's refresh) and counted how long each game frame stayed on screen. | run (Series X, 2560x1440 internal) | gameplay fps (median) | ms/frame = prep + GPU wait + copy-back | p95 / max frame | frames > 50 ms | Diner intro below 20 fps | |---|---|---|---|---|---| | cap 60 (52a) | 24.6 | 40.7 = 21.3 + **15.9** + 3.6 | 44.9 / 198 ms | 69 | 77.6 -> 171.1 s | | cap 60 + `VICTORY_FILL_TITLE=1` (53a) | 29.9 | 33.5 = 18.8 + **1.3** + 4.1 | 57 / 3050 ms | 433 | 86.7 -> 169.8 s | | cap 30 + FILL_TITLE=1, borderless (56a) | 29.2 | 34.3 = 18.6 + 0.7 + 3.9 | 52 / 1383 ms | 399 | 80.4 -> 134.6 s | | **same, browser closed (57b)** | **30.0** (min 24.0) | 33.3 = 20.9 + 0.2 + 3.8 | **33.56 / 823 ms** | **66** (0.8 % over 2x median, mean change 0.36 ms) | 85.1 -> 171.3 s | - **The Series X settle.** Without FILL_TITLE every gameplay frame had exactly one settle, "title memory read by a fill of upload memory", waiting 15.9 ms for the card: the 480-byte constant ring fill in the 174 MB heap that is declared written as a whole. `VICTORY_FILL_TITLE=1` removes it (+22 % median fps), but frame-to-frame change rose from 2.9 ms to 7-17 ms, and one run (54a) refused 40,932 draws in one burst when dynamic slots ran out. - **Memory is the wall for Series X on 32 GB.** During the Diner intro free RAM sat at 0.3-0.9 GB (97-99 % load), VRAM went 6 -> 15.9 GB used, `MakeResident` waits reached 0.95-1.65 s, and the cutscene showed 0.5-2.9 s holds. Loading screens and standing in the cell were a flat 33.33 ms. With a browser holding 8 GB (57a) world entry took 60 s longer and gameplay froze for 3-8 s; with it closed (57b, 17.9 GB free at launch) free RAM still fell to 0.35-0.75 GB in the intro, but gameplay was a locked 30 with p95 33.56 ms. Close the browser on 32 GB. - **Descriptor heap.** Every run (S and X) logs `host view heap capped at 1000000 ... count=1245184 fitted=475711 dynamic=524288`: the title wants 720,896 views and 245,184 of them read the null slot. - **In-place constants** (port of fxceless `bcc54215`, with a log of why it is turned down): the 174 MB heap is "not one run of a section: Scattered" with `VICTORY_SECTION_MB=2` and also with `0`, so it never applies here. That matches @⁠fubukiclears' three-window reading in #650. **FPS unlock (`VICTORY_UNLOCK_FPS=30..1000`, build 1.0.2.1 only, byte-checked).** `fwTimer::Update` (`0x22264d0`) and `UpdateClock` (`0x2226040`) clamp the real QPC delta up to `[0x6849844]` = 1/`get_target_fps` (1/30), which is why uncapped frames ran the game faster. Patching `get_target_fps` (`0x2241fd0`) and the two preset loads (`0x1e0fc62`, `0x224359a`) moves the floor, the title's QPC limiter and `SetFrameIntervalX` together. Series S: title screen 30 -> 142-165 fps; Diner 54.4 s at 33-35 fps vs 52.1 s locked at 30 (no speed-up). Pair it with `VICTORY_TARGET_FPS` at or below the unlock rate so presents never beat the floor (uncapped, the boot splash ran at 584-708 fps). Other commits: `VICTORY_FILE_CACHE` (avatarmanz#423; first 3D frame 61.5 s vs 93.7 s, warm cache), `VICTORY_BORDERLESS=1` (whole monitor, 3840x2160 shown at 2560x1440), `VICTORY_PRESENT_SYNC=1..4` (sync interval for fixed-refresh panels; built and unit-tested, not yet run), the card_merge fast path (fxceless#1427), BC7 rotation (trustno1#23) and the cell's violet probe filter (trustno1#29). The levels-on-demand fix from ScarlettPort#64 was tried and backed out pending a run with enough free RAM.
Author
Owner

@⁠jptorres96 on GitHub · 2026-11-27 14:45 UTC · original

@⁠gomeaw independent hardware check of the split-LDS read-run change, on Ada:

  • RTX 4080 SUPER 16 GB, driver 621.01, Ryzen 5 5600X, Windows build 26300
  • gomeaw/VIctory-7900XTX at 301e10e, toolchain 1.98.1, DXIL validator from DXC 1.9.2609.5 (VICTORY_DXIL)

cargo test --locked -p victory-shader --lib wave32_lds_read_runs_share_a_barrier -- --nocapture:

wave32 LDS barriers: 4; wave64 LDS barriers: 1
DXIL validator accepted the LDS read runs
all 64 lanes observed the old and new LDS values

The whole victory-shader lib at the same commit, --test-threads=1: 301 passed, 0 failed, 4 ignored, with no hardware case skipped.

I don't have a game dump, so I can't do the matched in-game A/B. Happy to run further synthetic or hardware checks on this card.

**@⁠jptorres96** on GitHub · 2026-11-27 14:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/143#issuecomment-7221197105) @⁠gomeaw independent hardware check of the split-LDS read-run change, on Ada: - RTX 4080 SUPER 16 GB, driver 621.01, Ryzen 5 5600X, Windows build 26300 - `gomeaw/VIctory-7900XTX` at `301e10e`, toolchain 1.98.1, DXIL validator from DXC 1.9.2609.5 (`VICTORY_DXIL`) `cargo test --locked -p victory-shader --lib wave32_lds_read_runs_share_a_barrier -- --nocapture`: ``` wave32 LDS barriers: 4; wave64 LDS barriers: 1 DXIL validator accepted the LDS read runs all 64 lanes observed the old and new LDS values ``` The whole `victory-shader` lib at the same commit, `--test-threads=1`: 301 passed, 0 failed, 4 ignored, with no hardware case skipped. I don't have a game dump, so I can't do the matched in-game A/B. Happy to run further synthetic or hardware checks on this card.
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/avatarmanz--VIctory-7900XTX#143
No description provided.