RTX 4080 / Win10: 27.2 fps median (28.6 max, 0 stutters >55 ms) — reproducible NVIDIA recipe, PR stack, and 3 unused NVIDIA GPU leads #1268

Open
opened 2026-11-26 07:26:33 +00:00 by github-bot · 16 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/fxceless/victory-fork/issues/1268) 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:26:33 +00:00
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/fxceless/victory-fork/issues/1268#issuecomment-7186315541) ### 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/fxceless/victory-fork/issues/1268#issuecomment-7187124566) ### 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

@⁠HLVM04 on GitHub · 2026-11-26 08:56 UTC · original

A caution on VICTORY_SKIP_WC_BACK=1 (#868) in this recipe, from an RTX 5070 Ti (Windows 11, Series S profile, fork main plus PRs and local changes, ray tracing off):

  • With it on, the room lamp light goes missing in the first rooms on our stack, so the room renders dark. We missed this at first because we judged those runs only by the character (corrected in our comment on #868).
  • With it on, about 17% of title buffer copies read write-combined memory whose shader writes are never brought back, so they read stale bytes. Whether that is what removes the lamp light is not checked.

The table above judges the recipe on black flashes, and with RT skipped and VICTORY_AMBIENT on, a missing lamp may be easy to miss. An A/B of the room lighting with and without the switch (same spot, ambient off) would show whether it happens on your tree too. Our runs were few and on a different tree, so take this as a reason to check, not as proof.

**@⁠HLVM04** on GitHub · 2026-11-26 08:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7187218912) A caution on `VICTORY_SKIP_WC_BACK=1` (#868) in this recipe, from an RTX 5070 Ti (Windows 11, Series S profile, fork main plus PRs and local changes, ray tracing off): - With it on, the room lamp light goes missing in the first rooms on our stack, so the room renders dark. We missed this at first because we judged those runs only by the character (corrected in our comment on #868). - With it on, about 17% of title buffer copies read write-combined memory whose shader writes are never brought back, so they read stale bytes. Whether that is what removes the lamp light is not checked. The table above judges the recipe on black flashes, and with RT skipped and `VICTORY_AMBIENT` on, a missing lamp may be easy to miss. An A/B of the room lighting with and without the switch (same spot, ambient off) would show whether it happens on your tree too. Our runs were few and on a different tree, so take this as a reason to check, not as proof.
Author
Owner

@⁠Danigamer05 on GitHub · 2026-11-26 12:10 UTC · original

A data point from a much slower machine, on the same base tree (trustno1-coder/VIctory-NVIDIA 033be27, unmodified). On this CPU the frame is still CPU-bound, but the tree is clearly faster than the fxceless-based one I had been using.

Machine: RTX 2080 SUPER 8 GB (Turing, budget about 6.9 GB), Ryzen 7 3700X, 32 GB RAM, Windows 11, diagnostics build, --console series-s.
Switches: the default set of scripts/play-nvidia.ps1 (RT resolve and traced-shadow shaders skipped, CARD_BUFFERS_MIN_MB=1, CARD_BUFFERS_MB=1536, PIPELINE_WAIT_MS=10000, and so on), without Smooth Motion. Every shader was translated ahead with victory.exe shaders (25,776, 209 do not translate).

Each run is 600 s from launch, the same save, through the opening cutscene to the cell and the common room. The numbers are medians of the last 90 s.

run fps ms/frame preparing on the GPU copying back faces
fxceless main dc4c0fc + #1002 #1112 #798 #1081 + CPU PRs, TEXTURE_NO_WAIT=0 (for comparison) 7.7 129 74 5 48 right
this tree, 540p, default set (TEXTURE_NO_WAIT=1), first run on the tree 8.4 120 47 47 21 missing on Lucia and the NPCs
this tree, 540p, TEXTURE_NO_WAIT=0 9.4 107 39 50 18 right
this tree, 720p (RENDER_SCALE=0.6667), TEXTURE_NO_WAIT=0 8.9 113 48 44 23 right

What I saw:

  • Faces: with the default TEXTURE_NO_WAIT=1 the faces were gone. With TEXTURE_NO_WAIT=0 they are right in the cutscene and in gameplay, and it cost no frame rate here (9.4 against 8.4, though the first run also paid for the driver making pipelines). That fits the race described in #923.
  • Freezes: in the first run the picture stopped (0.2 to 1 fps for several seconds) each time a new area came into view, from PIPELINE_WAIT_MS=10000 while the driver made pipelines. In the following runs it was gone.
  • Overexposed cutscene frames: with the fxceless tree on this card, some cutscene frames go white. With this tree's ambient switches they did not appear in these runs.
  • 720p: about 0.5 fps less than 540p, a visibly sharper picture, a few texture glitches in the cutscene.
  • The card spills into shared memory (about 6.8 GB shared in use at the end). I saw no device loss in the three runs.

Caveats: one run per setting, judged by eye on screenshots every 10 s plus the player's view, and one scene only.

Numbers and text only. AI-assisted (Claude Code).

**@⁠Danigamer05** on GitHub · 2026-11-26 12:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7191661095) A data point from a much slower machine, on the same base tree (`trustno1-coder/VIctory-NVIDIA` `033be27`, unmodified). On this CPU the frame is still CPU-bound, but the tree is clearly faster than the fxceless-based one I had been using. **Machine:** RTX 2080 SUPER 8 GB (Turing, budget about 6.9 GB), Ryzen 7 3700X, 32 GB RAM, Windows 11, diagnostics build, `--console series-s`. **Switches:** the default set of `scripts/play-nvidia.ps1` (RT resolve and traced-shadow shaders skipped, `CARD_BUFFERS_MIN_MB=1`, `CARD_BUFFERS_MB=1536`, `PIPELINE_WAIT_MS=10000`, and so on), without Smooth Motion. Every shader was translated ahead with `victory.exe shaders` (25,776, 209 do not translate). Each run is 600 s from launch, the same save, through the opening cutscene to the cell and the common room. The numbers are medians of the last 90 s. | run | fps | ms/frame | preparing | on the GPU | copying back | faces | |---|---|---|---|---|---|---| | fxceless main `dc4c0fc` + #1002 #1112 #798 #1081 + CPU PRs, `TEXTURE_NO_WAIT=0` (for comparison) | 7.7 | 129 | 74 | 5 | 48 | right | | this tree, 540p, default set (`TEXTURE_NO_WAIT=1`), first run on the tree | 8.4 | 120 | 47 | 47 | 21 | missing on Lucia and the NPCs | | this tree, 540p, `TEXTURE_NO_WAIT=0` | **9.4** | 107 | 39 | 50 | 18 | right | | this tree, 720p (`RENDER_SCALE=0.6667`), `TEXTURE_NO_WAIT=0` | **8.9** | 113 | 48 | 44 | 23 | right | What I saw: - **Faces:** with the default `TEXTURE_NO_WAIT=1` the faces were gone. With `TEXTURE_NO_WAIT=0` they are right in the cutscene and in gameplay, and it cost no frame rate here (9.4 against 8.4, though the first run also paid for the driver making pipelines). That fits the race described in #923. - **Freezes:** in the first run the picture stopped (0.2 to 1 fps for several seconds) each time a new area came into view, from `PIPELINE_WAIT_MS=10000` while the driver made pipelines. In the following runs it was gone. - **Overexposed cutscene frames:** with the fxceless tree on this card, some cutscene frames go white. With this tree's ambient switches they did not appear in these runs. - **720p:** about 0.5 fps less than 540p, a visibly sharper picture, a few texture glitches in the cutscene. - The card spills into shared memory (about 6.8 GB shared in use at the end). I saw no device loss in the three runs. Caveats: one run per setting, judged by eye on screenshots every 10 s plus the player's view, and one scene only. Numbers and text only. AI-assisted (Claude Code).
Author
Owner

@⁠d0dev on GitHub · 2026-11-26 12:56 UTC · original · edited 2026-11-26 14:23 UTC

Edit: corrected the numbers. The first version averaged readings that included cut-scene/transition frames before the boat, which made the last row look like a gain (16.2 fps, GPU 27 ms). The table now counts only readings on the boat (>3,000 draws a frame).

Data point on trustno1-coder/VIctory-NVIDIA 033be27 (diag build, scripts\play-S-720p.ps1 -NoSmoothMotion, so Series S at 720p with the RT skip list): RTX 4070 Ti SUPER 16 GB (driver 616.92), Ryzen 7 5800X3D, 32 GB, Windows 11. Same save on the first boat mission, mean of the last 8 frame-log readings with >3,000 draws each:

run fps preparing on the GPU picture
default set 17.7 ~40 ms (not measured with card steps) faces broken (an NPC's face and beard misplaced), the protagonist's clothes texture shifting
TEXTURE_NO_WAIT=0 19.3 ~37 ms (not measured with card steps) faces right; occasional triangles and texture flicker on the boat
TEXTURE_NO_WAIT=0 CARD_STEPS=0 14.0 ~32 ms ~33 ms clean (one lighting flicker seen)
same + fxceless #1044, #1210, #1126, #907 (cherry-picked) 14.4 ~31 ms ~32 ms clean
  • Like Danigamer05's 2080 SUPER rows: TEXTURE_NO_WAIT=0 fixes the faces and is faster here too.
  • CARD_STEPS=2 is worth ~5 fps, but the triangles and flicker went away only with CARD_STEPS=0.
  • The four cherry-picked PRs give no measurable gain here (14.0 → 14.4 fps, within run-to-run spread). For #1126 its pass bits had to move to 128/256 because this tree already uses 64 for WIDE.
**@⁠d0dev** on GitHub · 2026-11-26 12:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7192664424) · edited 2026-11-26 14:23 UTC > **Edit:** corrected the numbers. The first version averaged readings that included cut-scene/transition frames before the boat, which made the last row look like a gain (16.2 fps, GPU 27 ms). The table now counts only readings on the boat (>3,000 draws a frame). Data point on `trustno1-coder/VIctory-NVIDIA` `033be27` (diag build, `scripts\play-S-720p.ps1 -NoSmoothMotion`, so Series S at 720p with the RT skip list): RTX 4070 Ti SUPER 16 GB (driver 616.92), Ryzen 7 5800X3D, 32 GB, Windows 11. Same save on the first boat mission, mean of the last 8 frame-log readings with >3,000 draws each: | run | fps | preparing | on the GPU | picture | |---|---|---|---|---| | default set | 17.7 | ~40 ms | (not measured with card steps) | faces broken (an NPC's face and beard misplaced), the protagonist's clothes texture shifting | | `TEXTURE_NO_WAIT=0` | **19.3** | ~37 ms | (not measured with card steps) | faces right; occasional triangles and texture flicker on the boat | | `TEXTURE_NO_WAIT=0 CARD_STEPS=0` | 14.0 | ~32 ms | ~33 ms | clean (one lighting flicker seen) | | same + fxceless #1044, #1210, #1126, #907 (cherry-picked) | 14.4 | ~31 ms | ~32 ms | clean | - Like Danigamer05's 2080 SUPER rows: `TEXTURE_NO_WAIT=0` fixes the faces and is faster here too. - `CARD_STEPS=2` is worth ~5 fps, but the triangles and flicker went away only with `CARD_STEPS=0`. - The four cherry-picked PRs give no measurable gain here (14.0 → 14.4 fps, within run-to-run spread). For #1126 its pass bits had to move to 128/256 because this tree already uses 64 for `WIDE`.
Author
Owner

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

Update — Solved MIN_KB=64 + SKIP_WC black-frame bug (VICTORY_SKIP_WC_MIN_KB=1024): verified 32.00 fps median, 0/230 black frames, full 4,505 draws/frame, GPU down to 61% busy!

Thanks @⁠Danigamer05 and @⁠d0dev for the 2080 SUPER and 4070 Ti SUPER data points — that VICTORY_TEXTURE_NO_WAIT=0 face-fix + speedup observation is super useful! We plan to A/B TEXTURE_NO_WAIT=0 right alongside #1274 (VICTORY_SECTION_MB=2, which cuts texture-remap stalls 37 ms -> ~1 ms) in our next pass.

Two major verified updates from our RTX 4080 16 GB / i5-13600K / Win10 testing:

1. Critical fix for VICTORY_CARD_BUFFERS_MIN_KB=64 + VICTORY_SKIP_WC_COMPARE=1 (VICTORY_SKIP_WC_MIN_KB, default 1024 KiB)

Earlier we noticed MIN_KB=64 + FETCH_CHECK=1 + SKIP_WC_COMPARE=1 gave 32 fps, but 5 subsequent 10-minute runs showed that unguarded SKIP_WC_COMPARE=1 at MIN_KB=64 triggers 66–72% full-screen black frames (152/230 on 6733ddf) and drops ~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), starving draw/exposure buffers. Meanwhile, the ~40 >= 1 MiB WC buffers account for 516 pieces/frame (39.0 MB) and are 100% safe to skip.
  • Fix: Gate VICTORY_SKIP_WC_COMPARE and VICTORY_SKIP_WC_BACK by buffer size (shadow.span().1 >= VICTORY_SKIP_WC_MIN_KB, default 1024 KiB). Full breakdown posted in #1163.
  • Win10 WDDM 2.7 note: GPUUploadHeapSupported=false on Win10 WDDM 2.7 (card memory the CPU maps supported=false), so SMALL_BUFFERS_BAR_MB / WINDOWS_BAR_MB don't engage on Win10 — making MIN_KB=64 + CARD_BUFFERS_MB=2048 + FETCH_CHECK=1 + SKIP_WC_MIN_KB=1024 the key win on Win10 NVIDIA.

2. Verified klbf-lab#57 shadow/watch CPU optimizations in live GTA 6

We ported the PastiiJay/klbf-lab#57 shadow/watch stack (O(dirty) TOUCHED_CARDS, 64-page-per-word CopiedPages bitmask, lock-free has_pending, direct merge_under_writes, FOUND_LOOSE TLS cache, in-place joined(), AVX2 SIMD diff/merge) and verified it with a 10-minute live runtime oracle audit (31,249 log lines, 0 mismatches across all 7 fast paths). In steady state on i5-13600K:

  • noting the runs: ~3.7 ms -> 1.28 ms (-65%)
  • finding the pages: ~0.28 ms -> 0.05 ms (-82%)

10-minute RTX 4080 / Win10 A/B summary (render_scale=0.6667, Series S, RT skipped, t=140..600s n=230 scan)

Run Config Settled med FPS Tail-40 med (max, >55ms) Draws/fr Landed pieces (dirty MB) GPU busy BLACK (n=230)
Pass 14d MIN_KB=64, unguarded SKIP_WC 33.85 33.9 (35.6) 3,818 54 (1.3 MB) 74% 152/230 (66%)
Pass 14f MIN_MB=1, SKIP_WC=1 25.55 25.6 (28.1) 4,562 317 (4.6 MB) 99% (~39 ms) 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 clean)

Next up: porting #1184 (VICTORY_HOIST_CLAMPS=1), #1274 (VICTORY_SECTION_MB=2), and #1276 (HostHeap::drop cleanup), then attacking the remaining victory-submit CPU bottleneck (32.8 ms working while RTX 4080 is now only 61% busy!).

**@⁠Proudnoob4** on GitHub · 2026-11-26 14:39 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195130992) ### Update — Solved `MIN_KB=64` + `SKIP_WC` black-frame bug (`VICTORY_SKIP_WC_MIN_KB=1024`): verified **`32.00 fps` median, `0/230` black frames, full `4,505` draws/frame, GPU down to `61%` busy!** Thanks @⁠Danigamer05 and @⁠d0dev for the 2080 SUPER and 4070 Ti SUPER data points — that `VICTORY_TEXTURE_NO_WAIT=0` face-fix + speedup observation is super useful! We plan to A/B `TEXTURE_NO_WAIT=0` right alongside `#1274` (`VICTORY_SECTION_MB=2`, which cuts texture-remap stalls `37 ms -> ~1 ms`) in our next pass. Two major verified updates from our RTX 4080 16 GB / i5-13600K / Win10 testing: #### 1. Critical fix for `VICTORY_CARD_BUFFERS_MIN_KB=64` + `VICTORY_SKIP_WC_COMPARE=1` (`VICTORY_SKIP_WC_MIN_KB`, default `1024` KiB) Earlier we noticed `MIN_KB=64 + FETCH_CHECK=1 + SKIP_WC_COMPARE=1` gave `32 fps`, but 5 subsequent 10-minute runs showed that **unguarded** `SKIP_WC_COMPARE=1` at `MIN_KB=64` triggers **66–72% full-screen black frames** (`152/230` on `6733ddf`) and drops **~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`), starving draw/exposure buffers. Meanwhile, the ~40 `>= 1 MiB` WC buffers account for `516` pieces/frame (`39.0 MB`) and are 100% safe to skip. - **Fix:** Gate `VICTORY_SKIP_WC_COMPARE` and `VICTORY_SKIP_WC_BACK` by buffer size (`shadow.span().1 >= VICTORY_SKIP_WC_MIN_KB`, default `1024` KiB). Full breakdown posted in #1163. - **Win10 WDDM 2.7 note:** `GPUUploadHeapSupported=false` on Win10 WDDM 2.7 (`card memory the CPU maps supported=false`), so `SMALL_BUFFERS_BAR_MB` / `WINDOWS_BAR_MB` don't engage on Win10 — making `MIN_KB=64 + CARD_BUFFERS_MB=2048 + FETCH_CHECK=1 + SKIP_WC_MIN_KB=1024` the key win on Win10 NVIDIA. #### 2. Verified `klbf-lab#57` shadow/watch CPU optimizations in live GTA 6 We ported the `PastiiJay/klbf-lab#57` shadow/watch stack (`O(dirty)` `TOUCHED_CARDS`, 64-page-per-word `CopiedPages` bitmask, lock-free `has_pending`, direct `merge_under_writes`, `FOUND_LOOSE` TLS cache, in-place `joined()`, AVX2 SIMD diff/merge) and verified it with a **10-minute live runtime oracle audit** (`31,249` log lines, **0 mismatches** across all 7 fast paths). In steady state on i5-13600K: - `noting the runs`: `~3.7 ms -> 1.28 ms` (**-65%**) - `finding the pages`: `~0.28 ms -> 0.05 ms` (**-82%**) #### 10-minute RTX 4080 / Win10 A/B summary (`render_scale=0.6667`, Series S, RT skipped, `t=140..600s` `n=230` scan) | Run | Config | Settled med FPS | Tail-40 med (max, >55ms) | Draws/fr | Landed pieces (dirty MB) | GPU busy | `BLACK` (`n=230`) | |---|---|---:|---|---:|---|---:|---:| | Pass 14d | `MIN_KB=64`, unguarded `SKIP_WC` | `33.85` | `33.9` (`35.6`) | `3,818` | `54` (`1.3 MB`) | `74%` | `152/230` (66%) | | Pass 14f | `MIN_MB=1`, `SKIP_WC=1` | `25.55` | `25.6` (`28.1`) | `4,562` | `317` (`4.6 MB`) | `99%` (~39 ms) | `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 clean)** | Next up: porting **#1184** (`VICTORY_HOIST_CLAMPS=1`), **#1274** (`VICTORY_SECTION_MB=2`), and **#1276** (`HostHeap::drop` cleanup), then attacking the remaining `victory-submit` CPU bottleneck (`32.8 ms` working while RTX 4080 is now only `61%` busy!).
Author
Owner

@⁠d0dev on GitHub · 2026-11-26 14:52 UTC · original

@⁠Proudnoob4 Thanks for the update and for picking up the TEXTURE_NO_WAIT=0 point. The VICTORY_SKIP_WC_MIN_KB finding looks like it explains something I saw: with SKIP_WC_BACK=1 on fxceless' tree the prison rooms render noticeably darker on my 4070 Ti SUPER. I added the same size gate locally (skip only buffers ≥ 1 MiB) to compare.

Would you be willing to push the branch with the SKIP_WC_MIN_KB gate and your klbf-lab#57 port? I tried cherry-picking klbf-lab#57 (ea3f336) onto both fxceless main and VIctory-NVIDIA 033be27, and it conflicts in 12 and 26 places in shadow.rs respectively, all in the copy-back merge paths. I'd rather test your audited port than resolve those by hand. I'll post the numbers from the 4070 Ti SUPER / 5800X3D back here.

**@⁠d0dev** on GitHub · 2026-11-26 14:52 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195451038) @⁠Proudnoob4 Thanks for the update and for picking up the `TEXTURE_NO_WAIT=0` point. The `VICTORY_SKIP_WC_MIN_KB` finding looks like it explains something I saw: with `SKIP_WC_BACK=1` on fxceless' tree the prison rooms render noticeably darker on my 4070 Ti SUPER. I added the same size gate locally (skip only buffers ≥ 1 MiB) to compare. Would you be willing to push the branch with the `SKIP_WC_MIN_KB` gate and your klbf-lab#57 port? I tried cherry-picking klbf-lab#57 (`ea3f336`) onto both fxceless `main` and `VIctory-NVIDIA` `033be27`, and it conflicts in 12 and 26 places in `shadow.rs` respectively, all in the copy-back merge paths. I'd rather test your audited port than resolve those by hand. I'll post the numbers from the 4070 Ti SUPER / 5800X3D back here.
Author
Owner

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

@⁠d0dev Pushed our Pass 15 verified branch (f3c8a1f, built on top of trustno1-coder/VIctory-NVIDIA 033be27) here:

  • Branch: https://github.com/Proudnoob4/VIctory-NVIDIA/tree/nvidia-hybrid-v2
  • Key commits at tip:
    • b22c0a7 — audited port of PastiiJay/klbf-lab#57 (O(dirty) TOUCHED_CARDS, 64-page-per-word CopiedPages bitmask, lock-free has_pending, direct merge_under_writes, FOUND_LOOSE TLS cache, in-place joined(), AVX2 diff/merge; 0 mismatches over a 10-min live GTA 6 runtime-oracle run)
    • f3c8a1f — VICTORY_SKIP_WC_MIN_KB (default 1024 KiB = 1 MiB) gating both VICTORY_SKIP_WC_COMPARE and VICTORY_SKIP_WC_BACK in census.rs and host.rs

Switches used in our verified Pass 15 run (32.00 fps med, 0/230 black frames, 4,505 draws/frame on RTX 4080 / i5-13600K / Win10):

  • play-nvidia.ps1 baseline + rt_off_hashes.txt (VICTORY_SKIP_SYNC=1)
  • VICTORY_RENDER_SCALE=0.6666667, VICTORY_OWN_UPSCALER=1, VICTORY_COMPOSE=1, VICTORY_NAN_SCRUB=1
  • 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_MIN_KB defaults to 1024)
  • VICTORY_LAND_ASIDE=1, VICTORY_LAND_SKIP=1, VICTORY_SMART_BARRIERS=1, VICTORY_DEDUP_BARRIERS=1, VICTORY_COPY_BESIDE=1, VICTORY_STORE_BESIDE=1
  • VICTORY_NV_FLOAT=7, VICTORY_SPLIT_LDS_COALESCE=1, VICTORY_LDS_WRITE_ONLY_OK=1
  • VICTORY_STREAM_COPY=0, VICTORY_STREAM_REFRESH=0 (AVX2 NT stores regressed +2.2 ms on our CPU; may differ on 5800X3D)
  • And feel free to pair with VICTORY_TEXTURE_NO_WAIT=0 on your boat save!

Looking forward to your 4070 Ti SUPER / 5800X3D numbers — especially interested in how VICTORY_SKIP_WC_MIN_KB=1024 affects the prison lighting you noticed!

**@⁠Proudnoob4** on GitHub · 2026-11-26 14:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195609256) @⁠d0dev Pushed our Pass 15 verified branch (`f3c8a1f`, built on top of `trustno1-coder/VIctory-NVIDIA` `033be27`) here: - **Branch:** https://github.com/Proudnoob4/VIctory-NVIDIA/tree/nvidia-hybrid-v2 - **Key commits at tip:** - `b22c0a7` — audited port of `PastiiJay/klbf-lab#57` (`O(dirty)` `TOUCHED_CARDS`, 64-page-per-word `CopiedPages` bitmask, lock-free `has_pending`, direct `merge_under_writes`, `FOUND_LOOSE` TLS cache, in-place `joined()`, AVX2 diff/merge; `0` mismatches over a 10-min live GTA 6 runtime-oracle run) - `f3c8a1f` — `VICTORY_SKIP_WC_MIN_KB` (default `1024` KiB = `1 MiB`) gating both `VICTORY_SKIP_WC_COMPARE` and `VICTORY_SKIP_WC_BACK` in `census.rs` and `host.rs` **Switches used in our verified Pass 15 run (`32.00 fps` med, `0/230` black frames, `4,505` draws/frame on RTX 4080 / i5-13600K / Win10):** - `play-nvidia.ps1` baseline + `rt_off_hashes.txt` (`VICTORY_SKIP_SYNC=1`) - `VICTORY_RENDER_SCALE=0.6666667`, `VICTORY_OWN_UPSCALER=1`, `VICTORY_COMPOSE=1`, `VICTORY_NAN_SCRUB=1` - `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_MIN_KB` defaults to `1024`) - `VICTORY_LAND_ASIDE=1`, `VICTORY_LAND_SKIP=1`, `VICTORY_SMART_BARRIERS=1`, `VICTORY_DEDUP_BARRIERS=1`, `VICTORY_COPY_BESIDE=1`, `VICTORY_STORE_BESIDE=1` - `VICTORY_NV_FLOAT=7`, `VICTORY_SPLIT_LDS_COALESCE=1`, `VICTORY_LDS_WRITE_ONLY_OK=1` - `VICTORY_STREAM_COPY=0`, `VICTORY_STREAM_REFRESH=0` (AVX2 NT stores regressed `+2.2 ms` on our CPU; may differ on 5800X3D) - And feel free to pair with `VICTORY_TEXTURE_NO_WAIT=0` on your boat save! Looking forward to your 4070 Ti SUPER / 5800X3D numbers — especially interested in how `VICTORY_SKIP_WC_MIN_KB=1024` affects the prison lighting you noticed!
Author
Owner

@⁠d0dev on GitHub · 2026-11-26 16:13 UTC · original

@⁠Proudnoob4 Thanks for pushing the branch. Numbers from my RTX 4070 Ti SUPER 16 GB (driver 616.92) / Ryzen 7 5800X3D / 32 GB / Windows 11 26200, diag build, play-S-720p.ps1 -NoSmoothMotion, your Pass 15 switch list plus VICTORY_TEXTURE_NO_WAIT=0, first boat mission, mean of 8 frame-log readings with >3,000 draws:

build fps preparing copy-back card busy
989e5c6 (batch 12) 23.2 32.7 ms 7.0 ms 58 %
f42d67b (batch 13), LAZY_COPYBACK off 26.9 27.4 ms 6.9 ms 54 %

(The second run had ~3,430 draws/frame against ~3,720, so part of that gap is the scene.)

Picture: no flicker or triangles on the boat, faces right, and the prison is no longer dark with SKIP_WC_MIN_KB at its default, which matches what you expected. The probation officer's glasses look mostly right too. The only thing I'd call out is softness in the distance, which I put down to the 720p render scale.

VICTORY_LAZY_COPYBACK=1 crashed about 2.5 min after launch, just after reaching the world: 0xc0000005 at victory-image-…dll+0xc4b94e (write 0xfaff804: no access), then the same at 0xfaffc04. The last line before it: 27.5 newly armed, 61.8 steady hits, 1.3 VEH read faults, 16.0 VEH write faults, 9.8 explicit flushes (1.70 MB), 160 pages armed now. So a write to an armed page got past the handler.

One setup note for Windows 11 users: with bd5fa48 (the Agility SDK exports) the device creation failed with 0x887E0003 until I put D3D12Core.dll from Microsoft.Direct3D.D3D12 1.620.2 into target\diag\D3D12\ (this tree has no cargo xtask agility).

**@⁠d0dev** on GitHub · 2026-11-26 16:13 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7197348569) @⁠Proudnoob4 Thanks for pushing the branch. Numbers from my RTX 4070 Ti SUPER 16 GB (driver 616.92) / Ryzen 7 5800X3D / 32 GB / Windows 11 26200, diag build, `play-S-720p.ps1 -NoSmoothMotion`, your Pass 15 switch list plus `VICTORY_TEXTURE_NO_WAIT=0`, first boat mission, mean of 8 frame-log readings with >3,000 draws: | build | fps | preparing | copy-back | card busy | |---|---|---|---|---| | `989e5c6` (batch 12) | 23.2 | 32.7 ms | 7.0 ms | 58 % | | `f42d67b` (batch 13), `LAZY_COPYBACK` off | 26.9 | 27.4 ms | 6.9 ms | 54 % | (The second run had ~3,430 draws/frame against ~3,720, so part of that gap is the scene.) Picture: no flicker or triangles on the boat, faces right, and the prison is **no longer dark** with `SKIP_WC_MIN_KB` at its default, which matches what you expected. The probation officer's glasses look mostly right too. The only thing I'd call out is softness in the distance, which I put down to the 720p render scale. **`VICTORY_LAZY_COPYBACK=1` crashed** about 2.5 min after launch, just after reaching the world: `0xc0000005 at victory-image-…dll+0xc4b94e (write 0xfaff804: no access)`, then the same at `0xfaffc04`. The last line before it: `27.5 newly armed, 61.8 steady hits, 1.3 VEH read faults, 16.0 VEH write faults, 9.8 explicit flushes (1.70 MB), 160 pages armed now`. So a write to an armed page got past the handler. One setup note for Windows 11 users: with `bd5fa48` (the Agility SDK exports) the device creation failed with `0x887E0003` until I put `D3D12Core.dll` from `Microsoft.Direct3D.D3D12` 1.620.2 into `target\diag\D3D12\` (this tree has no `cargo xtask agility`).
Author
Owner

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

@⁠d0dev Really appreciate the 4070 Ti SUPER / 5800X3D numbers and the visual confirmation — awesome to hear VICTORY_SKIP_WC_MIN_KB=1024 fixed the dark prison lighting on your end too, and +3.7 fps (23.2 -> 26.9 fps, preparing 32.7 -> 27.4 ms) from klbf-lab#57 + Batch 13 matches what we measured!

Two quick follow-ups + a fresh branch push (f53aa2b on Proudnoob4/VIctory-NVIDIA nvidia-hybrid-v2):

  1. Thanks for catching the VICTORY_LAZY_COPYBACK=1 VEH crash (0xc0000005 write to armed page 0xfaff804 escaping the handler on Win 11 / 5800X3D) — I'll relay that exact trace to @PastiiJay / @Vladimir-Human on PastiiJay/klbf-lab#59 (we also keep VICTORY_LAZY_COPYBACK=0 by default). Also noted your Windows 11 0x887E0003 Agility SDK D3D12Core.dll 1.620.2 setup note.
  2. Fresh 10-min RTX 4080 / i5-13600K / Win 10 A/B findings in f53aa2b (Batch 14 + 14b, pure victory-gpu/victory-hle, zero shader cache rebuild):
    • WDDM submit overhead in trustno1-coder/VIctory-NVIDIA#1 (ebf3d3c9): splitting ExecuteCommandLists(check) unconditionally added +16 extra WDDM submits/frame and regressed our RTX 4080 by ~2.5 ms. In f53aa2b we gated the split behind VICTORY_SPLIT_COMPARE_SUBMIT=1 (or diagnostics + VICTORY_D3D12_DEBUG), keeping release gaming on the single submit path.
    • Verified clean (0 errors, 0/230 black frames across 10 min):
      • VICTORY_SET_CACHE (default ON; credit @zocram4cc): 4,215 skipped host bindings/frame (23.6%).
      • VICTORY_FIND_BUCKETS (default ON; credit @zocram4cc), fxceless#1320 + fxceless#1324 (HostHeap::id() slot safety; credit @CwWwWwW).
      • VICTORY_MAP_LOCK_FINE=1, VICTORY_PARTIAL_DELTA=1, VICTORY_BAKE_DELTA=1 (credit @zocram4cc / Op-lite/victory-scarlett), and VICTORY_ASK_TEXTURES=1 (53.8% write-watch cache hit on textures when VICTORY_ASK_QUIET=0).
    • Native Windows A/B traps to leave OFF:
      • VICTORY_ASK_QUIET=4: hurt +0.95 ms on native Win 10 (1 MiB GetWriteWatch block expansion; Linux/Wine RPC win only).
      • VICTORY_COPY_COMPARE=1: cut PCIe upload 19.3 -> 6.9 MB/f (-64%) and hash passes 157 -> 92, but fragmented CopyBufferRegion ranges 66.9k -> 72.1k (+0.5 ms CPU copies).
      • VICTORY_PORT_JOURNAL=1 (avatarmanz Port 7): pushed our heap_sync from 4.65 -> 7.09 ms (+2.44 ms) because asking heap records at every title submit (28/f) scanned 322 pages vs 200 pages when batched by VICTORY_JOIN_PARTS=8 (16/f). Left opt-in OFF by default.

Next up we're tackling the 27–29 ms GPU active ceiling (86–89.5% GPU busy on RTX 4080 in the 4,580-draw yard scene) by porting Marvisak/VIctory#2825 (native16 f16 math) + PastiiJay/klbf-lab#50 (Wave32 LDS hazard analysis) + PastiiJay/klbf-lab#41 (DXIL LICM/LDS/barrier opt) together in one shader cache rebuild, plus TablePlan / scoped bindless heap refreshes / VICTORY_POOL_DISCARD=1 (crediting @codec_d & Op-lite/victory-scarlett).

**@⁠Proudnoob4** on GitHub · 2026-11-26 16:50 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7198160550) @⁠d0dev Really appreciate the 4070 Ti SUPER / 5800X3D numbers and the visual confirmation — awesome to hear `VICTORY_SKIP_WC_MIN_KB=1024` fixed the dark prison lighting on your end too, and `+3.7 fps` (`23.2 -> 26.9 fps`, `preparing 32.7 -> 27.4 ms`) from `klbf-lab#57` + Batch 13 matches what we measured! Two quick follow-ups + a fresh branch push (`f53aa2b` on [`Proudnoob4/VIctory-NVIDIA` `nvidia-hybrid-v2`](https://github.com/Proudnoob4/VIctory-NVIDIA/tree/nvidia-hybrid-v2)): 1. **Thanks for catching the `VICTORY_LAZY_COPYBACK=1` VEH crash** (`0xc0000005` write to armed page `0xfaff804` escaping the handler on Win 11 / 5800X3D) — I'll relay that exact trace to `@PastiiJay` / `@Vladimir-Human` on `PastiiJay/klbf-lab#59` (we also keep `VICTORY_LAZY_COPYBACK=0` by default). Also noted your Windows 11 `0x887E0003` Agility SDK `D3D12Core.dll` `1.620.2` setup note. 2. **Fresh 10-min RTX 4080 / i5-13600K / Win 10 A/B findings in `f53aa2b` (Batch 14 + 14b, pure `victory-gpu`/`victory-hle`, zero shader cache rebuild):** - **WDDM submit overhead in `trustno1-coder/VIctory-NVIDIA#1` (`ebf3d3c9`):** splitting `ExecuteCommandLists(check)` unconditionally added `+16` extra WDDM submits/frame and regressed our RTX 4080 by `~2.5 ms`. In `f53aa2b` we gated the split behind `VICTORY_SPLIT_COMPARE_SUBMIT=1` (or `diagnostics` + `VICTORY_D3D12_DEBUG`), keeping release gaming on the single submit path. - **Verified clean (0 errors, 0/230 black frames across 10 min):** - `VICTORY_SET_CACHE` (default ON; credit `@zocram4cc`): **4,215 skipped host bindings/frame (`23.6%`)**. - `VICTORY_FIND_BUCKETS` (default ON; credit `@zocram4cc`), `fxceless#1320` + `fxceless#1324` (`HostHeap::id()` slot safety; credit `@CwWwWwW`). - `VICTORY_MAP_LOCK_FINE=1`, `VICTORY_PARTIAL_DELTA=1`, `VICTORY_BAKE_DELTA=1` (credit `@zocram4cc` / `Op-lite/victory-scarlett`), and `VICTORY_ASK_TEXTURES=1` (**53.8% write-watch cache hit** on textures when `VICTORY_ASK_QUIET=0`). - **Native Windows A/B traps to leave OFF:** - `VICTORY_ASK_QUIET=4`: hurt `+0.95 ms` on native Win 10 (1 MiB `GetWriteWatch` block expansion; Linux/Wine RPC win only). - `VICTORY_COPY_COMPARE=1`: cut PCIe upload `19.3 -> 6.9 MB/f` (`-64%`) and hash passes `157 -> 92`, but fragmented `CopyBufferRegion` ranges `66.9k -> 72.1k` (`+0.5 ms` CPU copies). - `VICTORY_PORT_JOURNAL=1` (`avatarmanz` Port 7): pushed our `heap_sync` from `4.65 -> 7.09 ms` (`+2.44 ms`) because asking heap records at every title submit (`28/f`) scanned `322` pages vs `200` pages when batched by `VICTORY_JOIN_PARTS=8` (`16/f`). Left opt-in OFF by default. Next up we're tackling the **27–29 ms GPU active ceiling** (`86–89.5%` GPU busy on RTX 4080 in the 4,580-draw yard scene) by porting **`Marvisak/VIctory#2825` (`native16` f16 math)** + **`PastiiJay/klbf-lab#50` (Wave32 LDS hazard analysis)** + **`PastiiJay/klbf-lab#41` (DXIL LICM/LDS/barrier opt)** together in one shader cache rebuild, plus `TablePlan` / scoped bindless heap refreshes / `VICTORY_POOL_DISCARD=1` (crediting `@codec_d` & `Op-lite/victory-scarlett`).
Author
Owner

@⁠Victorywillbeours222 on GitHub · 2026-11-26 18:39 UTC · original

Data point for Proudnoob4/VIctory-NVIDIA nvidia-hybrid-v2 f53aa2b on a different processor: RTX 5080 16 GB, Ryzen 7 5800X (8 cores, no X3D), 32 GB, Windows 11 26200. Diagnostics build, --console series-s.

Switches: play-nvidia.ps1's set at 720p (RENDER_SCALE=0.6666667, OWN_UPSCALER, COMPOSE, BVH_MISS, rt_off_hashes.txt), RELAY=2, CARD_STEPS=2, TEXTURE_NO_WAIT=0, plus the Pass 15 list as posted (SKIP_SYNC, CARD_BUFFERS_MIN_KB=64, CARD_BUFFERS_MB=2048, FETCH_CHECK, SKIP_WC_BACK, SKIP_WC_COMPARE with SKIP_WC_MIN_KB at its default, LAND_ASIDE, LAND_SKIP, SMART_BARRIERS, DEDUP_BARRIERS, COPY_BESIDE, STORE_BESIDE, NV_FLOAT=7, SPLIT_LDS_COALESCE, LDS_WRITE_ONLY_OK, STREAM_COPY=0, STREAM_REFRESH=0) and Batch 14b's MAP_LOCK_FINE, PARTIAL_DELTA, BAKE_DELTA, ASK_TEXTURES. Shaders were warmed with the same switches set, since NV_FLOAT, SPLIT_LDS_COALESCE, LDS_WRITE_ONLY_OK, BVH_MISS and NAN_SCRUB are in the cache key.

Local changes:

  • bd5fa48 (the Agility SDK 620 exports) is reverted. Without a D3D12Core.dll beside the exe, device creation fails on Windows 11 26200 (0x887E0003), as d0dev found. Reverted, the system runtime (10.0.26100.9818) works.
  • fork #1349's VICTORY_REAPER is ported, to measure it here (below).
  • From run 54 on, VIctory-NVIDIA 2d1dc38 is cherry-picked. It conflicts in texback.rs with MAP_LOCK_FINE, and I kept the ranged lock: title_memory_reading_in(at, end - at) in the writer.

Result, hands-off, the opening cell (600 s from launch; the first run on a fresh cache spends ~200 s with the driver making pipelines):

fps ms/frame preparing copying back draws/frame
run 53, first run (76 windows after the pipelines were made) 19.2 52.0 42.2 11.4 ~4,420
run 54, second run, + VIctory-NVIDIA 2d1dc38 (89 windows) 19.4 51.5 41.4 10.1 ~4,510

(Medians of the frame-log lines with over 3,000 draws, after each run's last pipeline wait.) With the pipelines kept from run 53, the world is steady about 140 s from launch instead of 220. 2d1dc38 (the texture read-back writer thread) can't show in this scene: the log has 0 texture read-backs a frame there. I kept it for streaming scenes. 0 errors and no device loss in either run. The picture in the cell is right: faces, hair, the window, and the photos and notes on the wall. For scale, the same machine and scene on fxceless main (ceb9e1f + #1002, with the #1317 processor switches) does 9.1 fps.

Where the frame goes on a 5800X: the submitting thread is the limit. The ASYNC_SUBMIT line says "that thread worked 48.0 ms" of the 52. The card is about 53% busy, and 24 ms of the frame it waits behind us. The preparing line, per frame:

  • 22.1 ms in the lists' steps (refreshes 13.5 ms in 41 flushes, copies and fills 5.8)
  • 4.2 ms asking the write watch
  • 4.3 ms putting the title's bytes under flights' writes
  • 7.2 ms in the pass over the heap's views (beside the recording)

Three off-by-default switches for that thread, run 56: VICTORY_AB=15,VICTORY_LANE_CORE,VICTORY_UP_QUEUE,VICTORY_JOIN_BARRIERS, so all eight combinations came in turn. The run was hands-off in the same scene, 660 s, 0 errors. I kept the 36 phases with ≥100 frames and >3,000 draws. Medians of the phases' median frames:

switch on off difference
LANE_CORE 53.2 ms (17) 51.4 ms (19) +1.8 (slower in all four pairs)
UP_QUEUE 52.6 52.2 +0.4
JOIN_BARRIERS 52.4 52.2 +0.2

All three off was the fastest combination: 50.8 ms, p90 56.1. On an 8-core 5800X, giving the submitting thread a core of its own costs more than it gains. My guess, not measured: the other threads have one core fewer. So the defaults are right on this processor.

VICTORY_REAPER (fork #1349) does nothing on this tree: 52.0 ms on, 51.9 off. About 47,000 retired objects a frame take 1.0 ms to drop; details on #1349.

Not tested here: VICTORY_WINDOWS_BAR_MB (VIctory-NVIDIA cda4987). This PC has resizable BAR off (BAR1 256 MiB), so mapped_card_buffer would give nothing.

Numbers and text only. AI-assisted (Claude Code).

**@⁠Victorywillbeours222** on GitHub · 2026-11-26 18:39 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7200706254) Data point for `Proudnoob4/VIctory-NVIDIA` `nvidia-hybrid-v2` `f53aa2b` on a different processor: **RTX 5080 16 GB, Ryzen 7 5800X (8 cores, no X3D), 32 GB, Windows 11 26200**. Diagnostics build, `--console series-s`. **Switches:** play-nvidia.ps1's set at 720p (`RENDER_SCALE=0.6666667`, `OWN_UPSCALER`, `COMPOSE`, `BVH_MISS`, `rt_off_hashes.txt`), `RELAY=2`, `CARD_STEPS=2`, `TEXTURE_NO_WAIT=0`, plus the Pass 15 list as posted (`SKIP_SYNC`, `CARD_BUFFERS_MIN_KB=64`, `CARD_BUFFERS_MB=2048`, `FETCH_CHECK`, `SKIP_WC_BACK`, `SKIP_WC_COMPARE` with `SKIP_WC_MIN_KB` at its default, `LAND_ASIDE`, `LAND_SKIP`, `SMART_BARRIERS`, `DEDUP_BARRIERS`, `COPY_BESIDE`, `STORE_BESIDE`, `NV_FLOAT=7`, `SPLIT_LDS_COALESCE`, `LDS_WRITE_ONLY_OK`, `STREAM_COPY=0`, `STREAM_REFRESH=0`) and Batch 14b's `MAP_LOCK_FINE`, `PARTIAL_DELTA`, `BAKE_DELTA`, `ASK_TEXTURES`. Shaders were warmed with the same switches set, since `NV_FLOAT`, `SPLIT_LDS_COALESCE`, `LDS_WRITE_ONLY_OK`, `BVH_MISS` and `NAN_SCRUB` are in the cache key. **Local changes:** - `bd5fa48` (the Agility SDK 620 exports) is reverted. Without a `D3D12Core.dll` beside the exe, device creation fails on Windows 11 26200 (`0x887E0003`), as d0dev found. Reverted, the system runtime (10.0.26100.9818) works. - fork #1349's `VICTORY_REAPER` is ported, to measure it here (below). - From run 54 on, VIctory-NVIDIA `2d1dc38` is cherry-picked. It conflicts in `texback.rs` with `MAP_LOCK_FINE`, and I kept the ranged lock: `title_memory_reading_in(at, end - at)` in the writer. **Result, hands-off, the opening cell (600 s from launch; the first run on a fresh cache spends ~200 s with the driver making pipelines):** | | fps | ms/frame | preparing | copying back | draws/frame | |---|---|---|---|---|---| | run 53, first run (76 windows after the pipelines were made) | 19.2 | 52.0 | 42.2 | 11.4 | ~4,420 | | run 54, second run, + VIctory-NVIDIA `2d1dc38` (89 windows) | **19.4** | 51.5 | 41.4 | 10.1 | ~4,510 | (Medians of the frame-log lines with over 3,000 draws, after each run's last pipeline wait.) With the pipelines kept from run 53, the world is steady about 140 s from launch instead of 220. `2d1dc38` (the texture read-back writer thread) can't show in this scene: the log has 0 texture read-backs a frame there. I kept it for streaming scenes. 0 errors and no device loss in either run. The picture in the cell is right: faces, hair, the window, and the photos and notes on the wall. For scale, the same machine and scene on fxceless main (`ceb9e1f` + #1002, with the #1317 processor switches) does 9.1 fps. **Where the frame goes on a 5800X:** the submitting thread is the limit. The `ASYNC_SUBMIT` line says "that thread worked 48.0 ms" of the 52. The card is about 53% busy, and 24 ms of the frame it waits behind us. The preparing line, per frame: - 22.1 ms in the lists' steps (refreshes 13.5 ms in 41 flushes, copies and fills 5.8) - 4.2 ms asking the write watch - 4.3 ms putting the title's bytes under flights' writes - 7.2 ms in the pass over the heap's views (beside the recording) **Three off-by-default switches for that thread, run 56:** `VICTORY_AB=15,VICTORY_LANE_CORE,VICTORY_UP_QUEUE,VICTORY_JOIN_BARRIERS`, so all eight combinations came in turn. The run was hands-off in the same scene, 660 s, 0 errors. I kept the 36 phases with ≥100 frames and >3,000 draws. Medians of the phases' median frames: | switch | on | off | difference | |---|---|---|---| | `LANE_CORE` | 53.2 ms (17) | 51.4 ms (19) | **+1.8** (slower in all four pairs) | | `UP_QUEUE` | 52.6 | 52.2 | +0.4 | | `JOIN_BARRIERS` | 52.4 | 52.2 | +0.2 | All three off was the fastest combination: 50.8 ms, p90 56.1. On an 8-core 5800X, giving the submitting thread a core of its own costs more than it gains. My guess, not measured: the other threads have one core fewer. So the defaults are right on this processor. **`VICTORY_REAPER` (fork #1349) does nothing on this tree:** 52.0 ms on, 51.9 off. About 47,000 retired objects a frame take 1.0 ms to drop; details on #1349. Not tested here: `VICTORY_WINDOWS_BAR_MB` (VIctory-NVIDIA `cda4987`). This PC has resizable BAR off (BAR1 256 MiB), so `mapped_card_buffer` would give nothing. Numbers and text only. AI-assisted (Claude Code).
Author
Owner

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

World-entry stall on RTX 4080 / i5-13600K: what it is, and why DirectStorage is not the cause

Setup: Proudnoob4/VIctory-NVIDIA nvidia-hybrid-v2 (926f113), Windows 10, Series S, render scale 0.6667. Runs 20-26 today; the first in-world minutes run at 0.1-6 fps before settling at 31-33 fps. Measured from the first in-world frame to 5 log lines >= 20 fps, the stall was 115, 174, 173, 242 and 182 s in five runs of near-identical settings, so single A/Bs of its length prove little.

What the title waits on. Its main thread spins at +0x4fb0bd0 in the console's monitorx/mwaitx wait (patched to pause + Sleep(0) on Intel), called from a two-slot frames-in-flight ring at +0x247476d: it waits for frame N-2. That spin shows up as CPU time in profiles (98 s in a 205 s window) and is invisible to wait hooks.

Where the time goes (VICTORY_TIMELINE=200+240+280,2,... on a diag build: the chain of work and waits behind each present). The card runs 15-17 ms per stall frame and idles 2.3-3.3 s. The chain to each next submission is roughly half the title's own job threads running (several threads, 150-500 ms each) and half ours: submit: the lists' steps 217-390 ms in every window, the descriptor-records thread 745 ms at world entry, the victory-under pool 71-445 ms, texture/copy refreshes 124-159 ms.

DirectStorage is not on that chain. With VICTORY_DSTORAGE_LOG, reads come in bursts that fill all 14 workers (300-1,200 queued at the peak), but each read takes 1-6 ms (median) and the workers then sit idle 1.5-2.6 s until the title's streaming thread submits again (the timeline names it as the waker). Ruled out on this machine:

  • E-core pinning (VICTORY_DISK_CORES=slow): A/B any-core vs E-cores gave stall 173 vs 242 s but longer queue waits unpinned (p90 1,019 vs 262 ms), so no clear win.
  • The staging budget: at most 14.6 of 256 MB held.
  • Timer resolution (timeBeginPeriod(1) is already set) and file handles (Io::Handles, one per worker).

Separate stutter sources seen in the same runs: host::mapped (the aside copy fenced after new card memory) single waits up to 1,004 ms, and MakeResident waits up to 422 ms.

AI-assisted (Claude Code).

**@⁠Proudnoob4** on GitHub · 2026-11-26 19:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201163209) ### World-entry stall on RTX 4080 / i5-13600K: what it is, and why DirectStorage is not the cause Setup: `Proudnoob4/VIctory-NVIDIA` `nvidia-hybrid-v2` (`926f113`), Windows 10, Series S, render scale 0.6667. Runs 20-26 today; the first in-world minutes run at 0.1-6 fps before settling at 31-33 fps. Measured from the first in-world frame to 5 log lines >= 20 fps, the stall was **115, 174, 173, 242 and 182 s** in five runs of near-identical settings, so single A/Bs of its length prove little. **What the title waits on.** Its main thread spins at `+0x4fb0bd0` in the console's `monitorx`/`mwaitx` wait (patched to `pause` + `Sleep(0)` on Intel), called from a two-slot frames-in-flight ring at `+0x247476d`: it waits for frame N-2. That spin shows up as CPU time in profiles (98 s in a 205 s window) and is invisible to wait hooks. **Where the time goes** (`VICTORY_TIMELINE=200+240+280,2,...` on a diag build: the chain of work and waits behind each present). The card runs 15-17 ms per stall frame and idles 2.3-3.3 s. The chain to each next submission is roughly half the title's own job threads running (several threads, 150-500 ms each) and half ours: `submit: the lists' steps` 217-390 ms in every window, the descriptor-records thread 745 ms at world entry, the `victory-under` pool 71-445 ms, texture/copy refreshes 124-159 ms. **DirectStorage is not on that chain.** With `VICTORY_DSTORAGE_LOG`, reads come in bursts that fill all 14 workers (300-1,200 queued at the peak), but each read takes 1-6 ms (median) and the workers then sit idle 1.5-2.6 s until the title's streaming thread submits again (the timeline names it as the waker). Ruled out on this machine: - E-core pinning (`VICTORY_DISK_CORES=slow`): A/B any-core vs E-cores gave stall 173 vs 242 s but *longer* queue waits unpinned (p90 1,019 vs 262 ms), so no clear win. - The staging budget: at most 14.6 of 256 MB held. - Timer resolution (`timeBeginPeriod(1)` is already set) and file handles (`Io::Handles`, one per worker). Separate stutter sources seen in the same runs: `host::mapped` (the aside copy fenced after new card memory) single waits up to 1,004 ms, and `MakeResident` waits up to 422 ms. AI-assisted (Claude Code).
Author
Owner

@⁠d0dev on GitHub · 2026-11-26 19:06 UTC · original

@⁠Proudnoob4 Results for f53aa2b on my RTX 4070 Ti SUPER / Ryzen 7 5800X3D / Windows 11 26200, same Pass 15 list + TEXTURE_NO_WAIT=0 + your new MAP_LOCK_FINE=1 PARTIAL_DELTA=1 BAKE_DELTA=1 ASK_TEXTURES=1, boat mission (~3,500 draws/frame), per-minute averages:

  • baseline (STREAM_COPY=0 STREAM_REFRESH=0): ~27 fps in the first two minutes on the boat, then steady at ~25 fps (preparing ~30 ms) for the next four; copy-back ~6.5 ms, card ~50–60 % busy
  • STREAM_COPY=1 STREAM_REFRESH=1: ~28 fps one minute in (preparing ~26 ms). That's within the early-minutes range above, so on the 5800X3D I'd call the NT stores neutral, not the +2.2 ms regression you saw.

ReBAR: couldn't test SMALL_BUFFERS_BAR_MB / WINDOWS_BAR_MB: the log says card memory the CPU maps supported=false, and nvidia-smi shows BAR1 = 256 MiB, so Resizable BAR is off in my BIOS (same as Victorywillbeours222's 5800X). I'll retest once I enable it.

Picture issues I've seen on your branch:

  • With CARD_STEPS=2 (the recipe's default) clothes flicker after getting off the boat, and reloading the checkpoint doesn't stop it. With CARD_STEPS=0 it's gone, but the boat goes from ~25–27 to ~14.6 fps.
  • A face texture is sometimes corrupt in the opening cutscenes (white with black patches, or a coloured "TV snow" pattern), a different character each launch (the probation officer once, a policewoman another time), with and without the STREAM_* switches. It looks timing-dependent, maybe the skin bake reading a texture before it has landed.
  • A patch of road/puddle stays black and car headlights are missing, the same with CARD_STEPS 0 or 2. I assume that's the RT skip list.
**@⁠d0dev** on GitHub · 2026-11-26 19:06 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201202200) @⁠Proudnoob4 Results for `f53aa2b` on my RTX 4070 Ti SUPER / Ryzen 7 5800X3D / Windows 11 26200, same Pass 15 list + `TEXTURE_NO_WAIT=0` + your new `MAP_LOCK_FINE=1 PARTIAL_DELTA=1 BAKE_DELTA=1 ASK_TEXTURES=1`, boat mission (~3,500 draws/frame), per-minute averages: - baseline (`STREAM_COPY=0 STREAM_REFRESH=0`): ~27 fps in the first two minutes on the boat, then **steady at ~25 fps** (preparing ~30 ms) for the next four; copy-back ~6.5 ms, card ~50–60 % busy - `STREAM_COPY=1 STREAM_REFRESH=1`: ~28 fps one minute in (preparing ~26 ms). That's within the early-minutes range above, so on the 5800X3D I'd call the NT stores neutral, not the +2.2 ms regression you saw. **ReBAR:** couldn't test `SMALL_BUFFERS_BAR_MB` / `WINDOWS_BAR_MB`: the log says `card memory the CPU maps supported=false`, and `nvidia-smi` shows BAR1 = 256 MiB, so Resizable BAR is off in my BIOS (same as Victorywillbeours222's 5800X). I'll retest once I enable it. **Picture issues I've seen on your branch:** - With `CARD_STEPS=2` (the recipe's default) clothes flicker after getting off the boat, and reloading the checkpoint doesn't stop it. With `CARD_STEPS=0` it's gone, but the boat goes from ~25–27 to ~14.6 fps. - A face texture is sometimes corrupt in the opening cutscenes (white with black patches, or a coloured "TV snow" pattern), a different character each launch (the probation officer once, a policewoman another time), with and without the `STREAM_*` switches. It looks timing-dependent, maybe the skin bake reading a texture before it has landed. - A patch of road/puddle stays black and **car headlights are missing**, the same with `CARD_STEPS` 0 or 2. I assume that's the RT skip list.
Author
Owner

@⁠Victorywillbeours222 on GitHub · 2026-11-26 19:35 UTC · original

Follow-up to my RTX 5080 / Ryzen 7 5800X numbers above. Same scene and method, hands-off in the opening cell. Tree: nvidia-hybrid-v2 f53aa2b, and 926f113 for run 61 (it builds and runs clean here, with only the Agility revert on top).

STREAM_REFRESH seems to depend on the processor. Run 57: VICTORY_AB=15,VICTORY_STREAM_COPY,VICTORY_STREAM_REFRESH,VICTORY_SYNC_FINE, 663 s, 0 errors. I kept the 35 phases with ≥100 frames and >3,000 draws.

switch on off difference
STREAM_REFRESH 49.6 ms (17) 51.0 ms (18) −1.4 (faster in all four pairs: −2.3, −1.7, −0.5, −0.6)
STREAM_COPY 50.7 50.5 +0.2
SYNC_FINE 50.5 50.7 −0.2

Two whole runs agree. With the Pass 15 list as posted (STREAM_REFRESH=0) the steady world was 19.4 fps, preparing 41.4 ms (run 54). With STREAM_REFRESH at its default (on) it was 20.3 fps, preparing 39.6 ms (run 59). The three processors so far:

  • 13600K: a 2.2 ms loss, as you measured
  • 5800X3D: neutral, per @⁠d0dev
  • 5800X: a 1.4 ms gain

So the streaming-stores default may be best left per machine rather than off in the recipe. STREAM_COPY makes no difference here either way.

What the frame waits on here (VICTORY_TIMELINE=220+360+500,5,..., run 58). This is the chain of work and waits behind each present, averaged per frame over the three windows:

  • the title's own threads running its code: 5–10.5 ms
  • "woken, not running yet": 3.3–5.8 ms (up to 12 ms in single frames)
  • the card running submissions: about 4.3 ms
  • each of ours under 2 ms: the lists' steps, a copy's refresh, VirtualProtect, GetWriteWatch

Processor use over the same steady part (typeperf every 2 s, runs 59–61): the PC 74–76% busy over 16 logical processors, victory.exe about 10.3–10.7 of them, run-queue median 1 (p90 4–9). Context switches 93,000–99,000 a second, about 2,000 a frame.

I tried three ways to cut the waiting, each against run 59 (20.3 fps, 49.3 ms):

run change steady fps ms/frame context switches/s
60 THIN_THREADS=6 UNDER_THREADS=4 (fewer workers) 19.2* 52.1* 99,000
61 WIDE_SPIN=100 20.2 49.5 93,500
56 LANE_CORE=1 (from my post above) +1.8 ms

*Run 60 was played, so this is its 125–255 s stretch only, before anyone touched the controller; run 59 over the same stretch was 50.1 ms. None of the three helps. The wake-ups don't come from pool size, and spinning 100 µs barely lowers them.

Played (run 60, same build): walking out of the cell into busier places at up to 7,400 draws a frame gave 15–17 fps, with 0 errors. One stall of a few seconds came on entering a new place: the recording threads waited 80 ms a frame for pipelines in that 5 s window.

Numbers and text only.

**@⁠Victorywillbeours222** on GitHub · 2026-11-26 19:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201747349) Follow-up to my RTX 5080 / Ryzen 7 5800X numbers above. Same scene and method, hands-off in the opening cell. Tree: `nvidia-hybrid-v2` `f53aa2b`, and `926f113` for run 61 (it builds and runs clean here, with only the Agility revert on top). **`STREAM_REFRESH` seems to depend on the processor.** Run 57: `VICTORY_AB=15,VICTORY_STREAM_COPY,VICTORY_STREAM_REFRESH,VICTORY_SYNC_FINE`, 663 s, 0 errors. I kept the 35 phases with ≥100 frames and >3,000 draws. | switch | on | off | difference | |---|---|---|---| | `STREAM_REFRESH` | 49.6 ms (17) | 51.0 ms (18) | **−1.4** (faster in all four pairs: −2.3, −1.7, −0.5, −0.6) | | `STREAM_COPY` | 50.7 | 50.5 | +0.2 | | `SYNC_FINE` | 50.5 | 50.7 | −0.2 | Two whole runs agree. With the Pass 15 list as posted (`STREAM_REFRESH=0`) the steady world was 19.4 fps, preparing 41.4 ms (run 54). With `STREAM_REFRESH` at its default (on) it was **20.3 fps**, preparing 39.6 ms (run 59). The three processors so far: - 13600K: a 2.2 ms loss, as you measured - 5800X3D: neutral, per @⁠d0dev - 5800X: a 1.4 ms gain So the streaming-stores default may be best left per machine rather than off in the recipe. `STREAM_COPY` makes no difference here either way. **What the frame waits on here** (`VICTORY_TIMELINE=220+360+500,5,...`, run 58). This is the chain of work and waits behind each present, averaged per frame over the three windows: - the title's own threads running its code: 5–10.5 ms - "woken, not running yet": **3.3–5.8 ms** (up to 12 ms in single frames) - the card running submissions: about 4.3 ms - each of ours under 2 ms: the lists' steps, a copy's refresh, `VirtualProtect`, `GetWriteWatch` Processor use over the same steady part (typeperf every 2 s, runs 59–61): the PC 74–76% busy over 16 logical processors, `victory.exe` about 10.3–10.7 of them, run-queue median 1 (p90 4–9). Context switches **93,000–99,000 a second**, about 2,000 a frame. I tried three ways to cut the waiting, each against run 59 (20.3 fps, 49.3 ms): | run | change | steady fps | ms/frame | context switches/s | |---|---|---|---|---| | 60 | `THIN_THREADS=6 UNDER_THREADS=4` (fewer workers) | 19.2* | 52.1* | 99,000 | | 61 | `WIDE_SPIN=100` | 20.2 | 49.5 | 93,500 | | 56 | `LANE_CORE=1` (from my post above) | | +1.8 ms | | \*Run 60 was played, so this is its 125–255 s stretch only, before anyone touched the controller; run 59 over the same stretch was 50.1 ms. None of the three helps. The wake-ups don't come from pool size, and spinning 100 µs barely lowers them. **Played (run 60, same build):** walking out of the cell into busier places at up to 7,400 draws a frame gave 15–17 fps, with 0 errors. One stall of a few seconds came on entering a new place: the recording threads waited 80 ms a frame for pipelines in that 5 s window. Numbers and text only.
Author
Owner

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

@⁠d0dev thanks, those picture reports are exactly what we can't see from the opening cell. On nvidia-hybrid-v2:

  • Face texture corrupt in the opening cutscenes (different character each launch): first suspect is VICTORY_BAKE_DELTA=1 from our list. It skips re-uploading a skin bake's source textures it believes unchanged; a source that changed while it was still landing would give exactly a stale or half-written face. Could you run the opening with VICTORY_BAKE_DELTA=0 (and, if it still shows, VICTORY_PARTIAL_DELTA=0 too)? That splits it in one or two launches.
  • Clothes flicker after the boat with CARD_STEPS=2, gone with 0: that points at a fill the card does instead of waiting for a flight. We'll try to reproduce it once we get past the cell; if you can, note whether VICTORY_PLACED_FORWARD=0 (also in our list, it feeds card fills from copies at their place) changes it.
  • Black road/puddle patch and missing headlights: most likely our ray-tracing skip list (VICTORY_SKIP_PIPELINES with the 1,034 resolve/traced-shadow hashes). A quick check is a launch without it; we'll look for which skipped programs those are.

Also, from PastiiJay on PastiiJay/klbf-lab#59: Vladimir-Human pushed c0ccb1b to perf/split-lazy-copyback-veh for the VEH escape you hit (0xc0000005 at +0xf804 / +0xfc04). They'd like the same first boat mission rerun on c0ccb1b with VICTORY_LAZY_COPYBACK=1 and the last stats line posted there, if you have time.

@⁠Victorywillbeours222 thanks for the per-processor STREAM_REFRESH split; agreed it shouldn't be forced off in a shared recipe. For comparison, our 13600K (14 cores) timeline in the moving cell scene (VICTORY_TIMELINE, diag build): the card runs ~9 ms a frame by its timestamps, "woken, not running yet" is small (0.3 ms), and the chain is our own CPU work: the submitting thread (~23 ms a frame in release), landing's "card plans and own work done" (4.6 ms) and waits for the heaps' records (~5 ms). So with 8 cores the wake-up latency you measured looks like your main cost, and on 14 cores it's our submit/landing path. Note the log's "the card about N% busy" counts queued time, not running.

AI-assisted (Claude Code).

**@⁠Proudnoob4** on GitHub · 2026-11-26 20:24 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7202647640) @⁠d0dev thanks, those picture reports are exactly what we can't see from the opening cell. On `nvidia-hybrid-v2`: - **Face texture corrupt in the opening cutscenes (different character each launch):** first suspect is `VICTORY_BAKE_DELTA=1` from our list. It skips re-uploading a skin bake's source textures it believes unchanged; a source that changed while it was still landing would give exactly a stale or half-written face. Could you run the opening with `VICTORY_BAKE_DELTA=0` (and, if it still shows, `VICTORY_PARTIAL_DELTA=0` too)? That splits it in one or two launches. - **Clothes flicker after the boat with `CARD_STEPS=2`, gone with `0`:** that points at a fill the card does instead of waiting for a flight. We'll try to reproduce it once we get past the cell; if you can, note whether `VICTORY_PLACED_FORWARD=0` (also in our list, it feeds card fills from copies at their place) changes it. - **Black road/puddle patch and missing headlights:** most likely our ray-tracing skip list (`VICTORY_SKIP_PIPELINES` with the 1,034 resolve/traced-shadow hashes). A quick check is a launch without it; we'll look for which skipped programs those are. Also, from PastiiJay on PastiiJay/klbf-lab#59: Vladimir-Human pushed `c0ccb1b` to `perf/split-lazy-copyback-veh` for the VEH escape you hit (`0xc0000005` at `+0xf804` / `+0xfc04`). They'd like the same first boat mission rerun on `c0ccb1b` with `VICTORY_LAZY_COPYBACK=1` and the last stats line posted there, if you have time. @⁠Victorywillbeours222 thanks for the per-processor `STREAM_REFRESH` split; agreed it shouldn't be forced off in a shared recipe. For comparison, our 13600K (14 cores) timeline in the moving cell scene (`VICTORY_TIMELINE`, diag build): the card *runs* ~9 ms a frame by its timestamps, "woken, not running yet" is small (0.3 ms), and the chain is our own CPU work: the submitting thread (~23 ms a frame in release), landing's "card plans and own work done" (4.6 ms) and waits for the heaps' records (~5 ms). So with 8 cores the wake-up latency you measured looks like your main cost, and on 14 cores it's our submit/landing path. Note the log's "the card about N% busy" counts queued time, not running. AI-assisted (Claude Code).
Author
Owner

@⁠d0dev on GitHub · 2026-11-26 20:53 UTC · original

@⁠Proudnoob4 thanks, I'll run those splits tomorrow. Here is what I already have from tonight. Setup: RTX 4070 Ti SUPER, 5800X3D, 32 GB, nvidia-hybrid-v2 f53aa2b, Series S 720p, Pass 15 list + TEXTURE_NO_WAIT=0, MAP_LOCK_FINE, PARTIAL_DELTA, BAKE_DELTA, ASK_TEXTURES. I'm only counting boat readings with more than 3,000 draws.

Resizable BAR (BAR1 16 GiB, card memory the CPU maps supported=true)

  • VICTORY_SMALL_BUFFERS_BAR_MB=128 + VICTORY_WINDOWS_BAR_MB=1024: all 3D renders black (cutscenes and gameplay), while subtitles, the chapter card and the minimap still draw. I haven't split which of the two causes it yet.
  • Without those two, ReBAR makes no clear difference. ReBAR off: 29–30 fps at first, down to 24–26 after ~1.5 min. ReBAR on: 27–28 at first, down to 24–25 after ~3 min. Both show GPU 0 ms, preparing 25–29 ms and copy-back ~6.5 ms.
  • An earlier "ReBAR halves the fps" result (13 fps, GPU ~42 ms) was my mistake: that list was missing CARD_BUFFERS_MIN_KB=64 / CARD_BUFFERS_MB=2048, and without them the GPU waits ~40 ms, same as step 2 in #1379.
  • In every run, fps drift down by ~5 in the same spot within a few minutes, ReBAR on or off. Does anyone else see that?

Faces: note that play-nvidia.ps1 already defaults to RELAY=2 CARD_STEPS=2, so that's what my earlier corrupt-face runs used. With CARD_STEPS=1 (#1379) I got one launch with no noise faces in the boat cutscene or on the boat, at the same speed (26–27.6 fps stable). That's only one launch and the bug is intermittent, so tomorrow I'll repeat it, check the clothes after the boat, and run your BAKE_DELTA=0 split with CARD_STEPS=2 to see which of the two matters.

Side note: the NVIDIA driver ships a profile for an unrelated game also called victory.exe, and it gets applied to the emulator. Renaming the exe made no measurable difference here.

**@⁠d0dev** on GitHub · 2026-11-26 20:53 UTC · [original](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7203174403) @⁠Proudnoob4 thanks, I'll run those splits tomorrow. Here is what I already have from tonight. Setup: RTX 4070 Ti SUPER, 5800X3D, 32 GB, `nvidia-hybrid-v2` `f53aa2b`, Series S 720p, Pass 15 list + `TEXTURE_NO_WAIT=0`, `MAP_LOCK_FINE`, `PARTIAL_DELTA`, `BAKE_DELTA`, `ASK_TEXTURES`. I'm only counting boat readings with more than 3,000 draws. **Resizable BAR (BAR1 16 GiB, `card memory the CPU maps supported=true`)** - `VICTORY_SMALL_BUFFERS_BAR_MB=128` + `VICTORY_WINDOWS_BAR_MB=1024`: **all 3D renders black** (cutscenes and gameplay), while subtitles, the chapter card and the minimap still draw. I haven't split which of the two causes it yet. - Without those two, ReBAR makes no clear difference. ReBAR off: 29–30 fps at first, down to 24–26 after ~1.5 min. ReBAR on: 27–28 at first, down to 24–25 after ~3 min. Both show GPU 0 ms, preparing 25–29 ms and copy-back ~6.5 ms. - An earlier "ReBAR halves the fps" result (13 fps, GPU ~42 ms) was my mistake: that list was missing `CARD_BUFFERS_MIN_KB=64` / `CARD_BUFFERS_MB=2048`, and without them the GPU waits ~40 ms, same as step 2 in #1379. - In every run, fps drift down by ~5 in the same spot within a few minutes, ReBAR on or off. Does anyone else see that? **Faces:** note that `play-nvidia.ps1` already defaults to `RELAY=2 CARD_STEPS=2`, so that's what my earlier corrupt-face runs used. With `CARD_STEPS=1` (#1379) I got one launch with **no noise faces** in the boat cutscene or on the boat, at the same speed (26–27.6 fps stable). That's only one launch and the bug is intermittent, so tomorrow I'll repeat it, check the clothes after the boat, and run your `BAKE_DELTA=0` split with `CARD_STEPS=2` to see which of the two matters. Side note: the NVIDIA driver ships a profile for an unrelated game also called `victory.exe`, and it gets applied to the emulator. Renaming the exe made no measurable difference here.
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/fxceless--victory-fork#1268
No description provided.