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 #1265

Open
opened 2026-11-26 07:11:21 +00:00 by Proudnoob4 · 30 comments
Proudnoob4 commented 2026-11-26 07:11:21 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T07:11:21Z.


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!

<!-- greyfinch-sync:fxceless/victory-fork:issue:6621482751 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T07:11:21Z. --- 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!
Proudnoob4 commented 2026-11-26 09:08:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T08:12:24Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7186315541 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7186315541). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T08:12:24Z. --- ### 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 commented 2026-11-26 09:08:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T08:52:23Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7187124566 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7187124566). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T08:52:23Z. --- ### 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).
HLVM04 commented 2026-11-26 09:08:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by HLVM04 on 2026-11-26T08:56:55Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7187218912 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7187218912). Originally posted by [HLVM04](https://github.com/HLVM04) on 2026-11-26T08:56:55Z. --- 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.
Danigamer05 commented 2026-11-26 13:05:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Danigamer05 on 2026-11-26T12:10:28Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7191661095 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7191661095). Originally posted by [Danigamer05](https://github.com/Danigamer05) on 2026-11-26T12:10:28Z. --- 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).
d0dev commented 2026-11-26 13:05:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-26T12:56:38Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7192664424 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7192664424). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-26T12:56:38Z. --- > **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`.
Proudnoob4 commented 2026-11-26 15:04:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T14:39:20Z.


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!).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7195130992 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195130992). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T14:39:20Z. --- ### 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!).
d0dev commented 2026-11-26 15:04:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-26T14:52:08Z.


@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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7195451038 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195451038). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-26T14:52:08Z. --- @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.
Proudnoob4 commented 2026-11-26 15:04:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T14:58:54Z.


@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!

<!-- greyfinch-sync:fxceless/victory-fork:comment:7195609256 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7195609256). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T14:58:54Z. --- @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!
d0dev commented 2026-11-26 16:13:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-26T16:13:18Z.


@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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7197348569 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7197348569). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-26T16:13:18Z. --- @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`).
Proudnoob4 commented 2026-11-26 16:50:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T16:50:21Z.


@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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7198160550 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7198160550). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T16:50:21Z. --- @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`).
Victorywillbeours222 commented 2026-11-26 18:39:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Victorywillbeours222 on 2026-11-26T18:39:21Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7200706254 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7200706254). Originally posted by [Victorywillbeours222](https://github.com/Victorywillbeours222) on 2026-11-26T18:39:21Z. --- 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).
Proudnoob4 commented 2026-11-26 19:04:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T19:04:16Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7201163209 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201163209). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T19:04:16Z. --- ### 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).
d0dev commented 2026-11-26 19:06:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-26T19:06:27Z.


@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.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7201202200 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201202200). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-26T19:06:27Z. --- @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.
Victorywillbeours222 commented 2026-11-26 19:35:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Victorywillbeours222 on 2026-11-26T19:35:04Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7201747349 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7201747349). Originally posted by [Victorywillbeours222](https://github.com/Victorywillbeours222) on 2026-11-26T19:35:04Z. --- 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.
Proudnoob4 commented 2026-11-26 20:24:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-26T20:24:47Z.


@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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7202647640 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7202647640). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-26T20:24:47Z. --- @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).
d0dev commented 2026-11-26 20:53:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-26T20:53:23Z.


@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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7203174403 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7203174403). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-26T20:53:23Z. --- @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.
loftymocha commented 2026-11-27 03:51:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T03:51:45Z.


Data point for Proudnoob4/VIctory-NVIDIA nvidia-hybrid-v2 on an RTX 5070 12 GB / Ryzen 7 7800X3D / 32 GB (64 GB page file) / Windows 11 26300, driver 617.42. Diagnostics build of 2dea829, --console series-s, 720p (RENDER_SCALE=0.6666667). Five supervised runs tonight, including @d0dev's face and clothes splits on the boat.

Build: 2dea829 with bd5fa48 and 1ef143d (Agility SDK) reverted. As others found, the system runtime works without a D3D12Core.dll on 26300, and device creation was clean every launch.

Switches: play-nvidia.ps1's set at 720p, rt_off_hashes.txt, plus the Pass 15 list as posted and Batch 14b (MAP_LOCK_FINE, PARTIAL_DELTA, BAKE_DELTA, ASK_TEXTURES). Also TEXTURE_NO_WAIT=0, RELAY=2, CARD_STEPS=1 unless noted, PIPELINE_WAIT_MS=150, STREAM_COPY=0, STREAM_REFRESH=0. No ReBAR switches.

Speed

fps are the log's 5-second lines with over 1,000 draws a frame.

Run Scene fps median (p10–p90) preparing waiting on the card copying back
1, hands-off opening cell, settled after the first ~3.5 min of pipeline creation 23.6 (21–25) ~29 ms ~5 ms ~5–7 ms
1, whole run cell, then the next scene 22.8 (10.0–25.6) 31.0 5.4 7.7
2, played cell, corridor, counselor, start of the robbery 20.4 (11.5–27.2) 37.4 4.3 6.7
2, played the robbery 9–11 50–64 5–8
3, BAKE_DELTA=0 boat 20.4 (16.8–22.5) 33.7 4.5 7.2
4, BAKE_DELTA=0 PARTIAL_DELTA=0 boat 20.8 (17.8–22.9) 32.1 4.9 7.5
5, BAKE_DELTA=0 CARD_STEPS=0 boat 15.9 (11.8–17.4) 29.9 24.1 6.9

For scale, the same PC on trustno1-coder/VIctory-NVIDIA ce6b254 (540p, TEXTURE_NO_WAIT=0) gave ~16 fps in the cell: ~62 ms a frame, of which ~33 ms preparing and ~16 ms copying back. So on this PC the branch cuts copy-back from ~16 to ~6–7 ms and gives ~20 fps at 720p over whole played sessions.

Memory is the limit on 32 GB. The game holds ~23 GB private, and free RAM bottomed out at 0.2–0.4 GB in every run, without a crash. There were 0 errors and no device loss in all five runs.

Picture: the splits

Issue Result here
Muddy, blotchy faces in the opening cutscenes, too dark BAKE_DELTA=0 fixed it, with no measurable cost (boat 20.4 fps). Faces on the boat were sharp afterwards.
Clothes and characters flicker on the boat (CARD_STEPS=1) PARTIAL_DELTA=0 did not fix it: clean for a few minutes, then it came back. CARD_STEPS=0 did fix it, at 20.4 → 15.9 fps.
"TV snow" face (coloured noise on the skin) Seen once, on the counselor, with both BAKE_DELTA=0 and PARTIAL_DELTA=0. So it isn't those two. It looks timing-dependent, as @d0dev said.
Blue glints on eyes and teeth in dark scenes With BAKE_DELTA=0 too. Probably the skipped RT reflections (Vice-Tay's README lists "some eyes are lit white").
Light blotches and ~2,300–2,700 draws dropped a frame In the scene after the cell when left idle in run 1.

On the CARD_STEPS=0 cost: the card is less busy with it (~40% vs ~50% by the log's count), but "on the GPU" (the CPU waiting for flights) goes from ~5 to ~24 ms a frame. So the frame isn't paying for card work. It's paying for waiting on every flight. If the flicker is clothing/skinning data being read before its flight lands, a wait limited to those buffers might keep most of CARD_STEPS=1's speed. Our drop (-22%) is smaller than @d0dev's (25 → 14.6, -42%), possibly because of the faster CPU here.

Next on this PC: STREAM_REFRESH=1 (nobody has measured a 7800X3D yet) and 540p vs 720p. I'll post those if they show anything.

AI-assisted (Claude Code). Numbers and log lines only, no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7209329928 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7209329928). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T03:51:45Z. --- Data point for `Proudnoob4/VIctory-NVIDIA` `nvidia-hybrid-v2` on an **RTX 5070 12 GB / Ryzen 7 7800X3D / 32 GB (64 GB page file) / Windows 11 26300**, driver 617.42. Diagnostics build of `2dea829`, `--console series-s`, 720p (`RENDER_SCALE=0.6666667`). Five supervised runs tonight, including @d0dev's face and clothes splits on the boat. **Build:** `2dea829` with `bd5fa48` and `1ef143d` (Agility SDK) reverted. As others found, the system runtime works without a `D3D12Core.dll` on 26300, and device creation was clean every launch. **Switches:** `play-nvidia.ps1`'s set at 720p, `rt_off_hashes.txt`, plus the Pass 15 list as posted and Batch 14b (`MAP_LOCK_FINE`, `PARTIAL_DELTA`, `BAKE_DELTA`, `ASK_TEXTURES`). Also `TEXTURE_NO_WAIT=0`, `RELAY=2`, `CARD_STEPS=1` unless noted, `PIPELINE_WAIT_MS=150`, `STREAM_COPY=0`, `STREAM_REFRESH=0`. No ReBAR switches. ### Speed fps are the log's 5-second lines with over 1,000 draws a frame. | Run | Scene | fps median (p10–p90) | preparing | waiting on the card | copying back | |---|---|---|---|---|---| | 1, hands-off | opening cell, settled after the first ~3.5 min of pipeline creation | 23.6 (21–25) | ~29 ms | ~5 ms | ~5–7 ms | | 1, whole run | cell, then the next scene | 22.8 (10.0–25.6) | 31.0 | 5.4 | 7.7 | | 2, played | cell, corridor, counselor, start of the robbery | 20.4 (11.5–27.2) | 37.4 | 4.3 | 6.7 | | 2, played | the robbery | 9–11 | 50–64 | | 5–8 | | 3, `BAKE_DELTA=0` | boat | 20.4 (16.8–22.5) | 33.7 | 4.5 | 7.2 | | 4, `BAKE_DELTA=0 PARTIAL_DELTA=0` | boat | 20.8 (17.8–22.9) | 32.1 | 4.9 | 7.5 | | 5, `BAKE_DELTA=0 CARD_STEPS=0` | boat | **15.9** (11.8–17.4) | 29.9 | **24.1** | 6.9 | For scale, the same PC on `trustno1-coder/VIctory-NVIDIA` `ce6b254` (540p, `TEXTURE_NO_WAIT=0`) gave ~16 fps in the cell: ~62 ms a frame, of which ~33 ms preparing and ~16 ms copying back. So on this PC the branch cuts copy-back from ~16 to ~6–7 ms and gives ~20 fps at 720p over whole played sessions. Memory is the limit on 32 GB. The game holds ~23 GB private, and free RAM bottomed out at **0.2–0.4 GB** in every run, without a crash. There were 0 errors and no device loss in all five runs. ### Picture: the splits | Issue | Result here | |---|---| | Muddy, blotchy faces in the opening cutscenes, too dark | `BAKE_DELTA=0` fixed it, with no measurable cost (boat 20.4 fps). Faces on the boat were sharp afterwards. | | Clothes and characters flicker on the boat (`CARD_STEPS=1`) | `PARTIAL_DELTA=0` did **not** fix it: clean for a few minutes, then it came back. `CARD_STEPS=0` **did** fix it, at 20.4 → 15.9 fps. | | "TV snow" face (coloured noise on the skin) | Seen once, on the counselor, with **both** `BAKE_DELTA=0` and `PARTIAL_DELTA=0`. So it isn't those two. It looks timing-dependent, as @d0dev said. | | Blue glints on eyes and teeth in dark scenes | With `BAKE_DELTA=0` too. Probably the skipped RT reflections (Vice-Tay's README lists "some eyes are lit white"). | | Light blotches and ~2,300–2,700 draws dropped a frame | In the scene after the cell when left idle in run 1. | On the `CARD_STEPS=0` cost: the card is *less* busy with it (~40% vs ~50% by the log's count), but "on the GPU" (the CPU waiting for flights) goes from ~5 to ~24 ms a frame. So the frame isn't paying for card work. It's paying for waiting on every flight. If the flicker is clothing/skinning data being read before its flight lands, a wait limited to those buffers might keep most of `CARD_STEPS=1`'s speed. Our drop (-22%) is smaller than @d0dev's (25 → 14.6, -42%), possibly because of the faster CPU here. Next on this PC: `STREAM_REFRESH=1` (nobody has measured a 7800X3D yet) and 540p vs 720p. I'll post those if they show anything. *AI-assisted (Claude Code). Numbers and log lines only, no game data or images.*
Proudnoob4 commented 2026-11-27 04:03:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-27T04:03:47Z.


@d0dev @Victorywillbeours222 Thank you both for those cross-machine splits — they directly shaped the updated defaults just pushed to Proudnoob4/VIctory-NVIDIA (nvidia-hybrid-v2, 17161c7 + 4eeaae4):

  • ReBAR safety (@d0dev): removed VICTORY_SMALL_BUFFERS_BAR_MB and VICTORY_WINDOWS_BAR_MB from play-nvidia.ps1 defaults so ReBAR-enabled NVIDIA cards don't hit black 3D.
  • Clean meshes/faces (VICTORY_CARD_STEPS=1, @d0dev): switched play-nvidia.ps1 default from 2 to 1 (plus VICTORY_TEXTURE_NO_WAIT=0). Across two 600 s recorded runs on RTX 4080 16 GB / i5-13600K / 32 GB (Series S 540p), automated 1-frame spike scanning dropped to 0 vertex stretches while keeping 31.3 fps Diner, 38.3 fps Cell steady (max 47.8), 41.9 fps Hallway (max 44.1), 34.8 fps Common, 33.4 fps Office uncapped (and a flat locked 30.0 fps at 17.7–20.9 ms CPU prep with our new hybrid sleep+spin pacer VICTORY_PRECISE_PACE=1).
  • CPU-dependent STREAM_REFRESH (@Victorywillbeours222): stopped forcing VICTORY_STREAM_REFRESH=0 in the shared launcher so Ryzen 5800X keeps its -1.4 ms win; Intel 13600K users can pass -More @{VICTORY_STREAM_REFRESH='0';VICTORY_STREAM_COPY='0'}.
  • No more Win11 Agility revert (@Victorywillbeours222): ported runtime Agility SDK loading (Marvisak#969), removing static D3D12SDKVersion/D3D12SDKPath exports so Win11 runs cleanly out of the box without a local revert and Win10 loads D3D12\D3D12Core.dll dynamically.
  • RAM headroom on 32 GB (VICTORY_KEEP_PAGES=0): raised AvailMB min from 30 MB -> 422 MB (med 3,168 MB, PagesIn/s med 1,686/s) over 600 s.
  • Also folded in mimalloc (trustno1-coder#11), fxceless#1367 scratch chunk pool, fxceless#1377, fxceless#1422, KyleS98/034bdca, VICTORY_AFFINITY=free, oz-stanislav-zhukov@2ce00838 trees, Dathinel/victory-4gb#15 haze clamp, pure-clamp CS_RayMiss glass/specular fix, and play-nvidia.ps1 -Warm.

Numbers and code notes only; AI-assisted.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7209488461 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7209488461). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-27T04:03:47Z. --- @d0dev @Victorywillbeours222 Thank you both for those cross-machine splits — they directly shaped the updated defaults just pushed 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)): - **ReBAR safety (@d0dev)**: removed `VICTORY_SMALL_BUFFERS_BAR_MB` and `VICTORY_WINDOWS_BAR_MB` from `play-nvidia.ps1` defaults so ReBAR-enabled NVIDIA cards don't hit black 3D. - **Clean meshes/faces (`VICTORY_CARD_STEPS=1`, @d0dev)**: switched `play-nvidia.ps1` default from `2` to `1` (plus `VICTORY_TEXTURE_NO_WAIT=0`). Across two 600 s recorded runs on RTX 4080 16 GB / i5-13600K / 32 GB (Series S 540p), automated 1-frame spike scanning dropped to **0 vertex stretches** while keeping **31.3 fps** Diner, **38.3 fps** Cell steady (`max 47.8`), **41.9 fps** Hallway (`max 44.1`), **34.8 fps** Common, **33.4 fps** Office uncapped (and a flat locked **30.0 fps** at `17.7–20.9 ms` CPU prep with our new hybrid sleep+spin pacer `VICTORY_PRECISE_PACE=1`). - **CPU-dependent `STREAM_REFRESH` (@Victorywillbeours222)**: stopped forcing `VICTORY_STREAM_REFRESH=0` in the shared launcher so Ryzen 5800X keeps its `-1.4 ms` win; Intel 13600K users can pass `-More @{VICTORY_STREAM_REFRESH='0';VICTORY_STREAM_COPY='0'}`. - **No more Win11 Agility revert (@Victorywillbeours222)**: ported runtime Agility SDK loading (`Marvisak#969`), removing static `D3D12SDKVersion`/`D3D12SDKPath` exports so Win11 runs cleanly out of the box without a local revert and Win10 loads `D3D12\D3D12Core.dll` dynamically. - **RAM headroom on 32 GB (`VICTORY_KEEP_PAGES=0`)**: raised `AvailMB min` from `30 MB -> 422 MB` (`med 3,168 MB`, `PagesIn/s med 1,686/s`) over 600 s. - Also folded in `mimalloc` (`trustno1-coder#11`), `fxceless#1367` scratch chunk pool, `fxceless#1377`, `fxceless#1422`, `KyleS98/034bdca`, `VICTORY_AFFINITY=free`, `oz-stanislav-zhukov@2ce00838` trees, `Dathinel/victory-4gb#15` haze clamp, pure-clamp `CS_RayMiss` glass/specular fix, and `play-nvidia.ps1 -Warm`. Numbers and code notes only; AI-assisted.
loftymocha commented 2026-11-27 04:38:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T04:38:55Z.


Follow-up to my RTX 5070 / Ryzen 7 7800X3D post above: STREAM_REFRESH on a 7800X3D. This uses the same build (nvidia-hybrid-v2 2dea829, Agility reverted), the same switches (Pass 15 + Batch 14b, BAKE_DELTA=0, CARD_STEPS=1, 720p), and the same played boat section. One change between the two runs:

boat STREAM_REFRESH=0 STREAM_REFRESH=1
fps median (p10–p90) 20.4 (16.8–22.5) 20.0 (18.1–23.3)
preparing 33.7 ms 32.3 ms
copying back 7.2 ms 7.2 ms
on the GPU 4.5 ms 4.9 ms

(These are the log's 5-second frame lines over 1,000 draws, boat section only: 93 and 109 lines.)

Neutral here: preparing is ~1.4 ms lower and the p10 is a little higher, but the median is the same within noise for one run each. That makes the list so far:

  • 13600K: 2.2 ms a frame slower with it on (Proudnoob4)
  • 5800X3D: neutral (d0dev)
  • 5800X: 1.4 ms a frame faster with it on (Victorywillbeours222)
  • 7800X3D: neutral

That agrees with leaving it at its default per machine rather than off in the recipe. 0 errors; lowest free RAM 0.4 GB on 32 GB.

AI-assisted (Claude Code). Numbers only.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7209978021 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7209978021). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T04:38:55Z. --- Follow-up to my RTX 5070 / Ryzen 7 7800X3D post above: **`STREAM_REFRESH` on a 7800X3D**. This uses the same build (`nvidia-hybrid-v2` `2dea829`, Agility reverted), the same switches (Pass 15 + Batch 14b, `BAKE_DELTA=0`, `CARD_STEPS=1`, 720p), and the same played boat section. One change between the two runs: | boat | `STREAM_REFRESH=0` | `STREAM_REFRESH=1` | |---|---|---| | fps median (p10–p90) | 20.4 (16.8–22.5) | 20.0 (18.1–23.3) | | preparing | 33.7 ms | 32.3 ms | | copying back | 7.2 ms | 7.2 ms | | on the GPU | 4.5 ms | 4.9 ms | (These are the log's 5-second frame lines over 1,000 draws, boat section only: 93 and 109 lines.) Neutral here: preparing is ~1.4 ms lower and the p10 is a little higher, but the median is the same within noise for one run each. That makes the list so far: - 13600K: 2.2 ms a frame slower with it on (Proudnoob4) - 5800X3D: neutral (d0dev) - 5800X: 1.4 ms a frame faster with it on (Victorywillbeours222) - 7800X3D: neutral That agrees with leaving it at its default per machine rather than off in the recipe. 0 errors; lowest free RAM 0.4 GB on 32 GB. *AI-assisted (Claude Code). Numbers only.*
loftymocha commented 2026-11-27 04:45:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T04:45:15Z.


Another RTX 5070 / 7800X3D data point, this time on render scale above 2/3 on Series S. Same nvidia-hybrid-v2 2dea829 build and switches as my posts above (OWN_UPSCALER=1, BAKE_DELTA=0, CARD_STEPS=1). Only VICTORY_RENDER_SCALE changed:

RENDER_SCALE rendered height result
1.0 1080 unhandled exception 0x80000003 at victory-image-…+0x2219650 about 5 s after launch, before the world
0.9 972 the same breakpoint, same address
0.8333333 900 the same
0.75 810 the same
0.6666667 720 boots and plays (all my runs above)

So it isn't only 1.0, which trustno1's 033be27 notes as stopping at a breakpoint at start on a 12 GB card. Anything above 2/3 trips it here, and it isn't video memory: free RAM and VRAM were nowhere near their limits, and it stops within seconds.

That 2/3 is the value the render scale: own upscaler minimum patch replaces (expect bytes AB AA 2A 3F = 0.6666667 at 0x28f1e7e), with "maximum = minimum" set alongside it. My guess is that something on the Series S path is sized or validated for at most 2/3 of the output, and the breakpoint at +0x2219650 is the title's own check on it. If someone has that address open in a disassembler, it should show what's being compared. Then Series S above 720p is one patch away rather than a setting.

On the same note: Vice-Tay 1d08233 on Series S also renders 1280×720 (≈22,000 draws a frame into 1280×720 targets in a captured frame) and lets the title's FSR 4 bring it up to 1080p. So for now both trees top out at 720p internal on Series S.

AI-assisted (Claude Code). Numbers and log lines only.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7210067097 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7210067097). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T04:45:15Z. --- Another RTX 5070 / 7800X3D data point, this time on **render scale above 2/3 on Series S**. Same `nvidia-hybrid-v2` `2dea829` build and switches as my posts above (`OWN_UPSCALER=1`, `BAKE_DELTA=0`, `CARD_STEPS=1`). Only `VICTORY_RENDER_SCALE` changed: | `RENDER_SCALE` | rendered height | result | |---|---|---| | 1.0 | 1080 | `unhandled exception 0x80000003 at victory-image-…+0x2219650` about 5 s after launch, before the world | | 0.9 | 972 | the same breakpoint, same address | | 0.8333333 | 900 | the same | | 0.75 | 810 | the same | | 0.6666667 | 720 | boots and plays (all my runs above) | So it isn't only 1.0, which trustno1's `033be27` notes as stopping at a breakpoint at start on a 12 GB card. Anything above 2/3 trips it here, and it isn't video memory: free RAM and VRAM were nowhere near their limits, and it stops within seconds. That 2/3 is the value the `render scale: own upscaler minimum` patch replaces (`expect` bytes `AB AA 2A 3F` = 0.6666667 at `0x28f1e7e`), with "maximum = minimum" set alongside it. My guess is that something on the Series S path is sized or validated for at most 2/3 of the output, and the breakpoint at `+0x2219650` is the title's own check on it. If someone has that address open in a disassembler, it should show what's being compared. Then Series S above 720p is one patch away rather than a setting. On the same note: Vice-Tay `1d08233` on Series S also renders 1280×720 (≈22,000 draws a frame into 1280×720 targets in a captured frame) and lets the title's FSR 4 bring it up to 1080p. So for now both trees top out at 720p internal on Series S. *AI-assisted (Claude Code). Numbers and log lines only.*
loftymocha commented 2026-11-27 05:39:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T05:39:14Z.


RTX 5070 / 7800X3D again, on rt_off_hashes.txt (VICTORY_SKIP_PIPELINES). On this tree it seems to be what breaks character shading, more than it protects rooms. Same nvidia-hybrid-v2 2dea829 build and switches as above (BAKE_DELTA=0, CARD_STEPS=1, 720p, Series S), played through the arrest, the plane cutscene, the boat and the boat chase. One change:

skip list on (1,034 hashes) skip list off (VICTORY_SKIP_PIPELINES=none)
character shading in cutscenes blotchy dark patches on faces (a crying toddler's brows and cheeks), hard glossy white highlights on skin and shoulders, muddy dark faces in the counselor's office right: skin, beards and sunglasses natural in the boat cutscene; colours and skin look right on screen
eye glints in dark close-ups bright blue/white glints still some (the counselor close-up), so something else is involved too
rooms going white by view angle (the reason in play-nvidia.ps1) — not seen in the cell, arrest, plane or boat scenes
GPU time ~5–6 ms a frame ~7.5 ms a frame (card ~55% busy)
fps, boat section 20.4 median (boat, earlier run) 16.5 median (13.9–19.4) over the boat plus the chase

The fps rows aren't the same stretch: the skip-off run includes the heavier chase. The calm boat minutes in that run averaged 18.3–19.3. So the cost is somewhere between ~1 and ~4 fps; I'll post an exact same-stretch number once I have one. Other notes:

  • The extra 1,034 pipelines add about 3–4 minutes of low fps on a cold cache while they're made.
  • 0 errors, no device loss. Game peak 23.3 GB private, lowest free RAM 0.6 GB.

New with the skip list off, and maybe unrelated (a single launch):

  • a very shiny, wet-looking cap on Jason
  • pastel confetti-like noise on the floral shirt in one boat shot (it could be the random "TV snow" texture issue, which I've seen with the list on too)

If others see the same, the recipe might be better without the full list, or skipping only the 34 traced-shadow hashes and leaving the 1,000 CS_RaytracingResolve ones running. It would help to know which scene made rooms go white originally, so I can check that one on this tree.

AI-assisted (Claude Code). Numbers and descriptions only, no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7210820513 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7210820513). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T05:39:14Z. --- RTX 5070 / 7800X3D again, on **`rt_off_hashes.txt` (`VICTORY_SKIP_PIPELINES`)**. On this tree it seems to be what breaks character shading, more than it protects rooms. Same `nvidia-hybrid-v2` `2dea829` build and switches as above (`BAKE_DELTA=0`, `CARD_STEPS=1`, 720p, Series S), played through the arrest, the plane cutscene, the boat and the boat chase. One change: | | skip list **on** (1,034 hashes) | skip list **off** (`VICTORY_SKIP_PIPELINES=none`) | |---|---|---| | character shading in cutscenes | blotchy dark patches on faces (a crying toddler's brows and cheeks), hard glossy white highlights on skin and shoulders, muddy dark faces in the counselor's office | right: skin, beards and sunglasses natural in the boat cutscene; colours and skin look right on screen | | eye glints in dark close-ups | bright blue/white glints | still some (the counselor close-up), so something else is involved too | | rooms going white by view angle (the reason in `play-nvidia.ps1`) | — | **not seen** in the cell, arrest, plane or boat scenes | | GPU time | ~5–6 ms a frame | ~7.5 ms a frame (card ~55% busy) | | fps, boat section | 20.4 median (boat, earlier run) | 16.5 median (13.9–19.4) over the boat **plus the chase** | The fps rows aren't the same stretch: the skip-off run includes the heavier chase. The calm boat minutes in that run averaged 18.3–19.3. So the cost is somewhere between ~1 and ~4 fps; I'll post an exact same-stretch number once I have one. Other notes: - The extra 1,034 pipelines add about 3–4 minutes of low fps on a cold cache while they're made. - 0 errors, no device loss. Game peak 23.3 GB private, lowest free RAM 0.6 GB. New with the skip list off, and maybe unrelated (a single launch): - a very shiny, wet-looking cap on Jason - pastel confetti-like noise on the floral shirt in one boat shot (it could be the random "TV snow" texture issue, which I've seen with the list on too) If others see the same, the recipe might be better without the full list, or skipping only the 34 traced-shadow hashes and leaving the 1,000 `CS_RaytracingResolve` ones running. It would help to know which scene made rooms go white originally, so I can check that one on this tree. *AI-assisted (Claude Code). Numbers and descriptions only, no game data or images.*
loftymocha commented 2026-11-27 06:11:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T06:11:27Z.


RTX 5070 / 7800X3D again, on NV_FLOAT: the exact maths looked clearly better here. The setup is the same nvidia-hybrid-v2 2dea829 build as above, with BAKE_DELTA=0 and VICTORY_SKIP_PIPELINES=none (my previous post). I changed NV_FLOAT=7 → NV_FLOAT=0, together with AMBIENT 0.8 → 1.0, so the two aren't isolated from each other. Ambient only moves the fill light, though, and the differences below are about skin detail and highlights.

Picture with NV_FLOAT=0 (judged only after the log showed 0 pipelines being made; see the warning at the end):

  • Lucia's close-up in the dark counselor's office: natural, detailed skin (pores, brows, flyaway hair), instead of the glossy or blotchy look. The blue/white eye glints are down to faint purple rims.
  • The outdoor boat scene after the chase: waves, clouds, boat decals and characters all right.
  • The bright eye glints, very shiny surfaces and fine-pattern noise I mentioned earlier look like reduced-precision artifacts, and they're mostly gone. The faint eye rims remain.

Cost: I couldn't see one. Since warm-up, with CARD_STEPS=1, it ran 18.4 fps median (11.2–25.3) over the counselor, cutscenes and boat, with ~7 ms waiting on the GPU. The NV_FLOAT=7 runs with the skip list off were 16.5–19, though not over the same stretch. With CARD_STEPS=0 (no clothes flicker) the same settings gave 13.5 (11.9–14.7), and the GPU wait rose to ~31 ms. So on this PC flicker-free costs ~5 fps, and that's all CARD_STEPS.

Warning for anyone testing this: NV_FLOAT is in the shader cache key, so changing it re-translates everything. My first launch with it was judged too early, with ~1,000–1,500 pipelines still being made and 270–430 draws dropped a frame. It looked badly broken: flat, featureless faces, black water, ghost panels. Wait until the frame lines show (0 being made) before comparing.

SPLIT_LDS_COALESCE and LDS_WRITE_ONLY_OK were left on. I'll test those separately if the remaining eye rims don't go away.

AI-assisted (Claude Code). Numbers and descriptions only, no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7211298749 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7211298749). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T06:11:27Z. --- RTX 5070 / 7800X3D again, on **`NV_FLOAT`**: the exact maths looked clearly better here. The setup is the same `nvidia-hybrid-v2` `2dea829` build as above, with `BAKE_DELTA=0` and `VICTORY_SKIP_PIPELINES=none` (my previous post). I changed `NV_FLOAT=7` → **`NV_FLOAT=0`**, together with `AMBIENT` 0.8 → 1.0, so the two aren't isolated from each other. Ambient only moves the fill light, though, and the differences below are about skin detail and highlights. **Picture with `NV_FLOAT=0`** (judged only after the log showed 0 pipelines being made; see the warning at the end): - Lucia's close-up in the dark counselor's office: natural, detailed skin (pores, brows, flyaway hair), instead of the glossy or blotchy look. The blue/white eye glints are down to faint purple rims. - The outdoor boat scene after the chase: waves, clouds, boat decals and characters all right. - The bright eye glints, very shiny surfaces and fine-pattern noise I mentioned earlier look like reduced-precision artifacts, and they're mostly gone. The faint eye rims remain. **Cost:** I couldn't see one. Since warm-up, with `CARD_STEPS=1`, it ran **18.4 fps median** (11.2–25.3) over the counselor, cutscenes and boat, with ~7 ms waiting on the GPU. The `NV_FLOAT=7` runs with the skip list off were 16.5–19, though not over the same stretch. With `CARD_STEPS=0` (no clothes flicker) the same settings gave 13.5 (11.9–14.7), and the GPU wait rose to ~31 ms. So on this PC flicker-free costs ~5 fps, and that's all `CARD_STEPS`. **Warning for anyone testing this:** `NV_FLOAT` is in the shader cache key, so changing it re-translates everything. My first launch with it was judged too early, with ~1,000–1,500 pipelines still being made and 270–430 draws dropped a frame. It looked badly broken: flat, featureless faces, black water, ghost panels. Wait until the frame lines show `(0 being made)` before comparing. `SPLIT_LDS_COALESCE` and `LDS_WRITE_ONLY_OK` were left on. I'll test those separately if the remaining eye rims don't go away. *AI-assisted (Claude Code). Numbers and descriptions only, no game data or images.*
loftymocha commented 2026-11-27 07:19:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T07:19:36Z.


Follow-up to my render-scale post above: the Series S 720p cap is two fixed Series S memory budgets, and with both raised, render scale 0.75 (810p) reaches the world. Same RTX 5070 / 7800X3D, nvidia-hybrid-v2 2dea829 + local changes.

The 0x80000003 at +0x2219650 isn't a resolution check. It's the title's allocator stopping at its own int3 when a pool is empty. I found the code paths with a disassembler on my own copy; only addresses and sizes here.

1. GPU memory pool 2 (heap object at rva 0x71c2808; the render targets come from it):

  • Its size comes from a per-console table in .rdata at 0x6186250: the Series S row, then the Series X row at +0x50, nine pool sizes each. The table is copied at 0x1e1ced0 and the pools are set up at 0x1e1cf60.
  • Pool 2 is 1,277 MiB on Series S (qword at 0x6186268) and 2,199 MiB on Series X.
  • Above 2/3 it runs out. The allocate wrapper 0x4fac3c0 then calls the out-of-memory handler 0x2219620, which hits the int3 at +0x2219650. The registers at the stop were a 1 MiB request at 64 KiB alignment.

2. A second Series S render budget, hit once pool 2 was raised:

  • 0x1d488a0 returns 0x1290 64 KiB pages (297 MiB) on Series S and 0x2c60 (710 MiB) on Series X: mov eax, 0x1290 at 0x1d488ac.
  • 0x5b056a0 stores it at 0x75eaeb8. 0x2473e20 stops at its int3 (+0x2473e88) when the needed size passes it: at 810p it needed 0x13a50000 (314 MiB).
  • Both use 0x75140, which picks the Series S value (also the per-console row index above, and the max render scale: 1.0 on S, 2/3 on X in 0x1fb4300).

The change (opt-in, checks the original bytes first, victory-loader hooks.rs next to the render-scale patches):

  • VICTORY_S_POOL2_MB rewrites the qword at 0x6186268 (1277..4096).
  • VICTORY_S_HEAP2_MB rewrites the mov eax immediate at 0x1d488ac (297..2048, in 64 KiB pages).

Result at render scale 0.75 with VICTORY_S_POOL2_MB=1792 VICTORY_S_HEAP2_MB=416 (and BAKE_DELTA=0, RT skip list off, NV_FLOAT=0, CARD_STEPS=1):

  • Reaches the world with 0 errors. Every screen-sized target scales: 1440×810, 720×405, 540×304, and the per-tile buffers too.
  • 17.5 fps median (16.0–23.3) since warm-up, the same as 720p on this CPU-bound PC (GPU ~9.6 ms a frame). Game ~21–22 GB private.
  • Outdoors (boat, bridge, water) is clearly sharper and looks right.

Still wrong at 810p (not seen at 720p in the same scenes):

  • Stair-step shadow edges on faces. They go away with the tiled cascade shadow pass f133e35efed2a48a skipped, so this looks like the #1356 per-tile flag problem showing up on the 180-tile-wide grid. The shadows are then wrong in other ways, as #1356 describes.
  • Faces in dim interiors much darker, often near-black (the family scene after the arrest). That's not from f133e35e (still dark with it skipped). No new emulator warnings at 810p, and the shadow pass's buffers are sized right. I'm now comparing the same frame at 720p and 810p pass by pass to find where it diverges.

The second budget is only 297 MiB, so 900p/1080p will need more of both. If someone sees the dark interior faces at a raised scale on another tree, I'd like to know.

AI-assisted (Claude Code). Addresses, sizes and log lines from my own copy; no game code, data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7212362792 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7212362792). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T07:19:36Z. --- Follow-up to my render-scale post above: **the Series S 720p cap is two fixed Series S memory budgets, and with both raised, render scale 0.75 (810p) reaches the world.** Same RTX 5070 / 7800X3D, `nvidia-hybrid-v2` `2dea829` + local changes. The `0x80000003` at `+0x2219650` isn't a resolution check. It's the title's allocator stopping at its own int3 when a pool is empty. I found the code paths with a disassembler on my own copy; only addresses and sizes here. **1. GPU memory pool 2** (heap object at rva `0x71c2808`; the render targets come from it): - Its size comes from a per-console table in `.rdata` at `0x6186250`: the Series S row, then the Series X row at `+0x50`, nine pool sizes each. The table is copied at `0x1e1ced0` and the pools are set up at `0x1e1cf60`. - Pool 2 is **1,277 MiB on Series S** (qword at `0x6186268`) and 2,199 MiB on Series X. - Above 2/3 it runs out. The allocate wrapper `0x4fac3c0` then calls the out-of-memory handler `0x2219620`, which hits the int3 at `+0x2219650`. The registers at the stop were a 1 MiB request at 64 KiB alignment. **2. A second Series S render budget**, hit once pool 2 was raised: - `0x1d488a0` returns `0x1290` 64 KiB pages (**297 MiB**) on Series S and `0x2c60` (710 MiB) on Series X: `mov eax, 0x1290` at `0x1d488ac`. - `0x5b056a0` stores it at `0x75eaeb8`. `0x2473e20` stops at its int3 (`+0x2473e88`) when the needed size passes it: at 810p it needed `0x13a50000` (314 MiB). - Both use `0x75140`, which picks the Series S value (also the per-console row index above, and the max render scale: 1.0 on S, 2/3 on X in `0x1fb4300`). **The change** (opt-in, checks the original bytes first, `victory-loader` `hooks.rs` next to the render-scale patches): - `VICTORY_S_POOL2_MB` rewrites the qword at `0x6186268` (1277..4096). - `VICTORY_S_HEAP2_MB` rewrites the `mov eax` immediate at `0x1d488ac` (297..2048, in 64 KiB pages). **Result at render scale 0.75** with `VICTORY_S_POOL2_MB=1792 VICTORY_S_HEAP2_MB=416` (and `BAKE_DELTA=0`, RT skip list off, `NV_FLOAT=0`, `CARD_STEPS=1`): - Reaches the world with 0 errors. Every screen-sized target scales: 1440×810, 720×405, 540×304, and the per-tile buffers too. - **17.5 fps median** (16.0–23.3) since warm-up, the same as 720p on this CPU-bound PC (GPU ~9.6 ms a frame). Game ~21–22 GB private. - Outdoors (boat, bridge, water) is clearly sharper and looks right. **Still wrong at 810p** (not seen at 720p in the same scenes): - **Stair-step shadow edges on faces.** They go away with the tiled cascade shadow pass `f133e35efed2a48a` skipped, so this looks like the #1356 per-tile flag problem showing up on the 180-tile-wide grid. The shadows are then wrong in other ways, as #1356 describes. - **Faces in dim interiors much darker, often near-black** (the family scene after the arrest). That's **not** from `f133e35e` (still dark with it skipped). No new emulator warnings at 810p, and the shadow pass's buffers are sized right. I'm now comparing the same frame at 720p and 810p pass by pass to find where it diverges. The second budget is only 297 MiB, so 900p/1080p will need more of both. If someone sees the dark interior faces at a raised scale on another tree, I'd like to know. *AI-assisted (Claude Code). Addresses, sizes and log lines from my own copy; no game code, data or images.*
loftymocha commented 2026-11-27 07:32:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-27T07:32:53Z.


Follow-up to my 810p post: use 864p, not 810p. The two picture bugs I reported at 810p are a resolution choice, not a new bug.

At 810p (render scale 0.75 → 1440×810), the title's downscaled passes round differently from each other. In one frame's render targets there were pairs that should match but are off by one:

  • 180×101 next to 180×102
  • 360×202 / 360×203
  • 90×50 / 90×51
  • 45×25 / 45×26

810 doesn't divide by 4, 8 or 16 (720 divides by 16), so passes that sample each other at 1/4…1/16 size don't line up. That gave the stair-step shadow edges on faces and faces flickering dark in dim rooms.

864p (render scale 0.8 → 1536×864) divides evenly by 16, and even by 32. Every downscaled target comes out even (768×432, 384×216, 192×108, 96×54, 48×27, plus 576×324 / 288×162), and both bugs are gone:

  • smooth shadow edges in the counselor close-ups
  • no dark flicker in the family scene after the arrest

On the same RTX 5070 / 7800X3D / 32 GB, nvidia-hybrid-v2 2dea829 + the two Series S budget levers from my last post:

render fps median since warm-up GPU per frame game memory
720p (0.6667) ~18.4 ~7 ms ~21 GB
810p (0.75) 17.5 ~9.6 ms ~21 GB (stair-steps, dark faces)
864p (0.8) 15.5 (11.7–18.7) ~14.5 ms ~23 GB

The budgets at 864p: VICTORY_S_POOL2_MB=2199 (the Series X value) and VICTORY_S_HEAP2_MB=512. 0 errors.

For anyone picking another scale: choose one where 1920×s and 1080×s both divide by 16. Below 1080 that's heights in steps of 144, so 720, 864 and 1008 (1792×1008). 720 itself still shows small 20×11 / 20×12 pairs at 1/32, where they don't seem to matter. 1080 doesn't divide by 16 (1080/16 = 67.5), so a native-1080 Series S render may need the same care.

AI-assisted (Claude Code). Numbers and render-target sizes from my own runs; no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7212579129 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7212579129). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-27T07:32:53Z. --- Follow-up to my 810p post: **use 864p, not 810p.** The two picture bugs I reported at 810p are a resolution choice, not a new bug. At 810p (render scale 0.75 → 1440×810), the title's downscaled passes round differently from each other. In one frame's render targets there were pairs that should match but are off by one: - 180×101 next to 180×102 - 360×202 / 360×203 - 90×50 / 90×51 - 45×25 / 45×26 810 doesn't divide by 4, 8 or 16 (720 divides by 16), so passes that sample each other at 1/4…1/16 size don't line up. That gave the stair-step shadow edges on faces and faces flickering dark in dim rooms. **864p** (render scale 0.8 → 1536×864) divides evenly by 16, and even by 32. Every downscaled target comes out even (768×432, 384×216, 192×108, 96×54, 48×27, plus 576×324 / 288×162), and **both bugs are gone**: - smooth shadow edges in the counselor close-ups - no dark flicker in the family scene after the arrest On the same RTX 5070 / 7800X3D / 32 GB, `nvidia-hybrid-v2` `2dea829` + the two Series S budget levers from my last post: | render | fps median since warm-up | GPU per frame | game memory | |---|---|---|---| | 720p (0.6667) | ~18.4 | ~7 ms | ~21 GB | | 810p (0.75) | 17.5 | ~9.6 ms | ~21 GB (stair-steps, dark faces) | | **864p (0.8)** | **15.5** (11.7–18.7) | ~14.5 ms | ~23 GB | The budgets at 864p: `VICTORY_S_POOL2_MB=2199` (the Series X value) and `VICTORY_S_HEAP2_MB=512`. 0 errors. For anyone picking another scale: choose one where 1920×s and 1080×s both divide by 16. Below 1080 that's heights in steps of 144, so 720, 864 and 1008 (1792×1008). 720 itself still shows small 20×11 / 20×12 pairs at 1/32, where they don't seem to matter. 1080 doesn't divide by 16 (1080/16 = 67.5), so a native-1080 Series S render may need the same care. *AI-assisted (Claude Code). Numbers and render-target sizes from my own runs; no game data or images.*
Proudnoob4 commented 2026-11-27 13:04:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-27T13:04:07Z.


### 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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7219016765 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7219016765). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-27T13:04:07Z. --- ### 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.
d0dev commented 2026-11-27 13:21:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-27T13:21:31Z.


@Proudnoob4 Partial follow-up on what you asked in 7202647640, on nvidia-hybrid-v2 11aa2ac (release, play-S-720p.ps1 -NoSmoothMotion, ReBAR on). RTX 4070 Ti SUPER 16 GB, Ryzen 7 5800X3D, 32 GB, Windows 11 26200, driver 616.92. Same first boat mission save.

Your new defaults (CARD_STEPS=1, TEXTURE_NO_WAIT=0, no BAR caps, LAZY_COPYBACK=1):

  • Boat: 30.0 fps locked by the pacer (33.3 ms, ~23 ms preparing, ~4.5 ms copying back, ~3,600 draws); 22–25 fps while turning the camera fast. No crash in 15+ minutes, so lazy copy-back held here too.
  • Getting off the boat: the clothes flicker and the black puddle are still there with these defaults.

Without the RT skip list (-RayTracing): the ~470 extra pipelines take ~4 minutes to build on the first run (2–4 fps while they do), then the boat is the same 30 fps locked (~3,500–4,450 draws). Played past the boat in a second run: the black "puddle" is still there (up close a huge black square, not a puddle), and without the list we get lighting flicker on plants and other surfaces, so the list isn't the cause of the black square and is worth keeping. The shirt still flickers at times in that run too, and it seemed to flicker in step with the lighting flicker, which may point to a shared cause. The cutscene faces were fine in that run, but that may be chance. Water on the boat looks off in every run on this branch: the two water computes 5dc3b25986622949 and 6f225b641c5b0708 are refused with 0x80070057 here, the same as cxy0072019-sketch reported on 11aa2ac in fxceless/victory-fork#953 (gray bay; blue-green with the two translated in wave32 form, no fps cost).

klbf-lab#59: done. c0ccb1b held 12 minutes with 0 0xc0000005 (report).

BAKE_DELTA=0 (faces): didn't help here: the probation officer's face in the cutscene before the boat is drawn as coloured confetti with it. That looks like what trustno1-coder/VIctory-NVIDIA#33 describes (a prelude upload not re-checked at submission against host writes, with lists recorded on several threads, i.e. VICTORY_THIN=1). The water on the boat also looked the worst of all our runs on this branch with BAKE_DELTA=0. Past the boat in that run: the shirt still flickers (maybe a bit less), and the "puddle" is still there; up close it isn't a puddle but a huge black polygon (from a distance it reads as dirt), so it may be lighting rather than water.

Still to do: PARTIAL_DELTA=0, then PLACED_FORWARD=0 for the clothes and the no-RT-list run past the boat for the puddle and lights. Those two need the mission played past the boat, so they'll come a bit later.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7219379741 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7219379741). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-27T13:21:31Z. --- @Proudnoob4 Partial follow-up on what you asked in 7202647640, on `nvidia-hybrid-v2` `11aa2ac` (release, `play-S-720p.ps1 -NoSmoothMotion`, ReBAR on). RTX 4070 Ti SUPER 16 GB, Ryzen 7 5800X3D, 32 GB, Windows 11 26200, driver 616.92. Same first boat mission save. **Your new defaults (`CARD_STEPS=1`, `TEXTURE_NO_WAIT=0`, no BAR caps, `LAZY_COPYBACK=1`):** - Boat: 30.0 fps locked by the pacer (33.3 ms, ~23 ms preparing, ~4.5 ms copying back, ~3,600 draws); 22–25 fps while turning the camera fast. No crash in 15+ minutes, so lazy copy-back held here too. - Getting off the boat: **the clothes flicker and the black puddle are still there** with these defaults. **Without the RT skip list (`-RayTracing`):** the ~470 extra pipelines take ~4 minutes to build on the first run (2–4 fps while they do), then the boat is the same 30 fps locked (~3,500–4,450 draws). Played past the boat in a second run: **the black "puddle" is still there** (up close a huge black square, not a puddle), and without the list we get lighting flicker on plants and other surfaces, so the list isn't the cause of the black square and is worth keeping. The shirt still flickers at times in that run too, and it seemed to flicker in step with the lighting flicker, which may point to a shared cause. The cutscene faces were fine in that run, but that may be chance. Water on the boat looks off in every run on this branch: the two water computes `5dc3b25986622949` and `6f225b641c5b0708` are refused with `0x80070057` here, the same as cxy0072019-sketch reported on `11aa2ac` in fxceless/victory-fork#953 (gray bay; blue-green with the two translated in wave32 form, no fps cost). **klbf-lab#59:** done. `c0ccb1b` held 12 minutes with 0 `0xc0000005` ([report](https://github.com/PastiiJay/klbf-lab/pull/59#issuecomment-7215023263)). **`BAKE_DELTA=0` (faces):** didn't help here: the probation officer's face in the cutscene before the boat is drawn as coloured confetti with it. That looks like what trustno1-coder/VIctory-NVIDIA#33 describes (a prelude upload not re-checked at submission against host writes, with lists recorded on several threads, i.e. `VICTORY_THIN=1`). The water on the boat also looked the worst of all our runs on this branch with `BAKE_DELTA=0`. Past the boat in that run: the shirt still flickers (maybe a bit less), and the "puddle" is still there; up close it isn't a puddle but a huge black polygon (from a distance it reads as dirt), so it may be lighting rather than water. Still to do: `PARTIAL_DELTA=0`, then `PLACED_FORWARD=0` for the clothes and the no-RT-list run past the boat for the puddle and lights. Those two need the mission played past the boat, so they'll come a bit later.
d0dev commented 2026-11-27 13:48:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by d0dev on 2026-11-27T13:48:00Z.


@Proudnoob4 A cross-machine point for your Series X 2560x1440 update, on nvidia-hybrid-v2 a6231671 (release). RTX 4070 Ti SUPER 16 GB, Ryzen 7 5800X3D, 32 GB, Windows 11 26200, driver 616.92, ReBAR on, browser closed. Same first boat mission save.

play-nvidia.ps1 -SeriesX -Resolution 1440 -NoSmoothMotion -More @{VICTORY_FILL_TITLE='1'} (Series X, render scale 0.6667):

run boat, standing boat, turning the camera fast frame
locked 30 (default pacer) 27.5–30.0 fps (~4,000–4,400 draws) 10.6–19 fps (~5,000–6,000 draws) ~21 ms preparing, ~5 ms copying back, ~0 ms on the GPU
-TargetFps 60 + VICTORY_UNLOCK_FPS=60 30.0–30.6 fps (~4,000 draws) ≥21 fps turning and accelerating (seen on screen) ~23 ms preparing + ~5 ms copying back
  • The unlock hooks applied (applied=3 target_fps=60, interval 16.67 ms), but standing on the boat it still lands at ~30: on this CPU the frame is ~33 ms of our own preparing and copy-back, so the 30 cap isn't what limits it here. Keeping the 30 lock is the steadier choice on this PC.
  • No crash or device loss over ~15 minutes per run.
  • Water: now and then a whitish patch appears in the distance and fades out like foam; not sure it's a bug. The two water computes (5dc3b25986622949, 6f225b641c5b0708) are still refused with 0x80070057 on this branch.
  • Faces: the NPC on the boat had a black face for a while and then it came right; one NPC in the intro was confetti (didn't see whether it recovered).

For comparison on the same PC and save: trustno1-coder/VIctory-NVIDIA (9341f43, Series X 1440p output, DLSS Quality) gave 24–26 fps standing on the boat and 11–20 turning, and ~50 fps shown with DLSS frame generation 2x on (25 real).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7219958754 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7219958754). Originally posted by [d0dev](https://github.com/d0dev) on 2026-11-27T13:48:00Z. --- @Proudnoob4 A cross-machine point for your Series X 2560x1440 update, on `nvidia-hybrid-v2` `a6231671` (release). RTX 4070 Ti SUPER 16 GB, Ryzen 7 5800X3D, 32 GB, Windows 11 26200, driver 616.92, ReBAR on, browser closed. Same first boat mission save. `play-nvidia.ps1 -SeriesX -Resolution 1440 -NoSmoothMotion -More @{VICTORY_FILL_TITLE='1'}` (Series X, render scale 0.6667): | run | boat, standing | boat, turning the camera fast | frame | |---|---|---|---| | locked 30 (default pacer) | 27.5–30.0 fps (~4,000–4,400 draws) | 10.6–19 fps (~5,000–6,000 draws) | ~21 ms preparing, ~5 ms copying back, ~0 ms on the GPU | | `-TargetFps 60` + `VICTORY_UNLOCK_FPS=60` | 30.0–30.6 fps (~4,000 draws) | ≥21 fps turning and accelerating (seen on screen) | ~23 ms preparing + ~5 ms copying back | - The unlock hooks applied (`applied=3 target_fps=60`, interval 16.67 ms), but standing on the boat it still lands at ~30: on this CPU the frame is ~33 ms of our own preparing and copy-back, so the 30 cap isn't what limits it here. Keeping the 30 lock is the steadier choice on this PC. - No crash or device loss over ~15 minutes per run. - Water: now and then a whitish patch appears in the distance and fades out like foam; not sure it's a bug. The two water computes (`5dc3b25986622949`, `6f225b641c5b0708`) are still refused with `0x80070057` on this branch. - Faces: the NPC on the boat had a black face for a while and then it came right; one NPC in the intro was confetti (didn't see whether it recovered). For comparison on the same PC and save: trustno1-coder/VIctory-NVIDIA (`9341f43`, Series X 1440p output, DLSS Quality) gave 24–26 fps standing on the boat and 11–20 turning, and ~50 fps shown with DLSS frame generation 2x on (25 real).
loftymocha commented 2026-11-29 02:57:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-29T02:57:27Z.


DLSS on nvidia-hybrid-v2: it works, but the title's FidelityFX path costs about a third of the frame rate. RTX 5070 12 GB / Ryzen 7 7800X3D / 32 GB, Windows 11 26300, driver 617.42, Series S profile, same boat save.

I ported trustno1-coder/VIctory-NVIDIA's Streamline DLSS (0338ec6: streamline.rs + streamline/, external.rs, the FidelityFX import interposer, the renderer-7 / render-size patch) onto nvidia-hybrid-v2 a623167. That's a feature port, not a rebase; the two share a base 1,242 commits back. Hybrid's hooks: the list EXTERNAL step, upscale ids handed over at submit, the queue and swap chain through Streamline's proxies, and present begin/end around Present. The movie-plane gate isn't ported (hybrid has no Bink module).

It runs: DLSS Super Resolution loads (Streamline 2.14.16, NGX 310.9.16), 1 upscale per frame with 0 failures over a whole run, and the window shows the picture. The boat scene is noticeably sharper (bridge, power lines, hull lettering, sun glints).

The frame rate is the catch. Same build, our usual settings, median after the pipeline warm-up:

path (Series S, 1080p out) fps ms/frame preparing GPU wait copy-back
title's own temporal upscaler (VICTORY_OWN_UPSCALER=1, 720p) 14.4 69.5 43.2 11.2 14.8
FidelityFX path, the title's FSR 4 (no DLSS) 8.6 117.5 69.3 15.3 28.2
FidelityFX path + DLSS Quality 9.1 109.7 63.5 14.9 22.4
FidelityFX path + DLSS Quality + VICTORY_FILL_TITLE=1 9.4 106.8 72.2 0.2 33.2
  • DLSS isn't what costs: the FidelityFX path is. With the title's own FSR 4 on that path it's just as slow, and DLSS is a little faster than FSR 4 (FSR 4 also puts ~112 MB/frame of shader output back into title memory, against ~10 MB with DLSS).
  • The threads wait; they don't work more. CPU time across all threads is about the same (335 vs 350 ms user per frame), as are the list-call counts. What grows on the FidelityFX path:
    • async submit thread: 58 → 135 ms a frame
    • title threads waiting at presents: 28 → 103 ms
    • submit thread waiting for the card: 8.7 → 22.9 ms
    • copy-back fetches: 10 → 24 ms
    • lists reset: 41 → 74 ms
    • the heap view pass: 2.4 → 7.6 ms looking at slots, 1.3 → 6.6 ms on textures
  • The title also draws more on renderer 7: ~5,000–5,275 draws a frame on the boat against ~4,100 on its own upscaler, with 172k descriptor slots looked at per frame against 125k. Some of the slowdown is simply more title work on that path.
  • The 174 MB heap again (+0xae00000, the one with the 480-byte constant ring): pieces sent up and fetched back in the same frame go from 36 to 130 a frame, and its "fill of upload memory" settle is the largest single wait on both paths.
  • VICTORY_FILL_TITLE=1 removes that settle (GPU wait 14.9 → 0.2 ms) but gains nothing here: copy-back and list resets grow by the same amount. On the boat it also broke the water: dark wall-like waves and a black spike beside the boat, mirror-flat elsewhere.

So for Series S on this card, DLSS through the FidelityFX path is the better picture at roughly 9 fps, against ~14–18 fps on the title's own upscaler. I'm looking next at why renderer 7 makes the view pass and copy-back that much heavier; ideas welcome.

AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images. The port is a local branch for now; I can share the diff if it's useful.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7249750954 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7249750954). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-29T02:57:27Z. --- **DLSS on `nvidia-hybrid-v2`: it works, but the title's FidelityFX path costs about a third of the frame rate.** RTX 5070 12 GB / Ryzen 7 7800X3D / 32 GB, Windows 11 26300, driver 617.42, Series S profile, same boat save. I ported trustno1-coder/VIctory-NVIDIA's Streamline DLSS (`0338ec6`: `streamline.rs` + `streamline/`, `external.rs`, the FidelityFX import interposer, the renderer-7 / render-size patch) onto `nvidia-hybrid-v2` `a623167`. That's a feature port, not a rebase; the two share a base 1,242 commits back. Hybrid's hooks: the list `EXTERNAL` step, upscale ids handed over at submit, the queue and swap chain through Streamline's proxies, and present begin/end around `Present`. The movie-plane gate isn't ported (hybrid has no Bink module). It runs: DLSS Super Resolution loads (Streamline 2.14.16, NGX 310.9.16), 1 upscale per frame with 0 failures over a whole run, and the window shows the picture. The boat scene is noticeably sharper (bridge, power lines, hull lettering, sun glints). The frame rate is the catch. Same build, our usual settings, median after the pipeline warm-up: | path (Series S, 1080p out) | fps | ms/frame | preparing | GPU wait | copy-back | |---|---|---|---|---|---| | title's own temporal upscaler (`VICTORY_OWN_UPSCALER=1`, 720p) | **14.4** | 69.5 | 43.2 | 11.2 | 14.8 | | FidelityFX path, the title's FSR 4 (no DLSS) | 8.6 | 117.5 | 69.3 | 15.3 | 28.2 | | FidelityFX path + DLSS Quality | 9.1 | 109.7 | 63.5 | 14.9 | 22.4 | | FidelityFX path + DLSS Quality + `VICTORY_FILL_TITLE=1` | 9.4 | 106.8 | 72.2 | 0.2 | 33.2 | - **DLSS isn't what costs: the FidelityFX path is.** With the title's own FSR 4 on that path it's just as slow, and DLSS is a little faster than FSR 4 (FSR 4 also puts ~112 MB/frame of shader output back into title memory, against ~10 MB with DLSS). - **The threads wait; they don't work more.** CPU time across all threads is about the same (335 vs 350 ms user per frame), as are the list-call counts. What grows on the FidelityFX path: - async submit thread: 58 → 135 ms a frame - title threads waiting at presents: 28 → 103 ms - submit thread waiting for the card: 8.7 → 22.9 ms - copy-back fetches: 10 → 24 ms - lists reset: 41 → 74 ms - the heap view pass: 2.4 → 7.6 ms looking at slots, 1.3 → 6.6 ms on textures - **The title also draws more on renderer 7:** ~5,000–5,275 draws a frame on the boat against ~4,100 on its own upscaler, with 172k descriptor slots looked at per frame against 125k. Some of the slowdown is simply more title work on that path. - **The 174 MB heap again** (`+0xae00000`, the one with the 480-byte constant ring): pieces sent up and fetched back in the same frame go from 36 to 130 a frame, and its "fill of upload memory" settle is the largest single wait on both paths. - **`VICTORY_FILL_TITLE=1` removes that settle** (GPU wait 14.9 → 0.2 ms) **but gains nothing here**: copy-back and list resets grow by the same amount. On the boat it also broke the water: dark wall-like waves and a black spike beside the boat, mirror-flat elsewhere. So for Series S on this card, DLSS through the FidelityFX path is the better picture at roughly 9 fps, against ~14–18 fps on the title's own upscaler. I'm looking next at why renderer 7 makes the view pass and copy-back that much heavier; ideas welcome. *AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images. The port is a local branch for now; I can share the diff if it's useful.*
loftymocha commented 2026-11-29 03:08:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-29T03:08:40Z.


Correction to my DLSS-on-hybrid post above: drop the "the title draws ~22% more on renderer 7" line. That came from comparing runs whose camera views differed.

In a matched pair (same build family, same boat stretch, both runs with render-target dumps on), the draws per frame are the same on both paths: 3,547 on the title's own upscaler, 3,493 on the FidelityFX path with DLSS. The FidelityFX path is still slower with equal draws:

per frame own upscaler FidelityFX + DLSS
fps (dumps on) 10.1 7.5
copy-back 19.1 ms 28.2 ms
preparing 59.6 ms 70.0 ms
lists reset 89 ms 112 ms

So the cost is waiting on copy-back, not extra title work. I'm now looking at which ranges get fetched back on that path. There are a few ~0.9 MB ones (720p-texture sized), each fetched about 15 times a frame, and they show up more on the FidelityFX path.

AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7249867877 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7249867877). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-29T03:08:40Z. --- Correction to my DLSS-on-hybrid post above: **drop the "the title draws ~22% more on renderer 7" line.** That came from comparing runs whose camera views differed. In a matched pair (same build family, same boat stretch, both runs with render-target dumps on), the draws per frame are the same on both paths: 3,547 on the title's own upscaler, 3,493 on the FidelityFX path with DLSS. The FidelityFX path is still slower with equal draws: | per frame | own upscaler | FidelityFX + DLSS | |---|---|---| | fps (dumps on) | 10.1 | 7.5 | | copy-back | 19.1 ms | 28.2 ms | | preparing | 59.6 ms | 70.0 ms | | lists reset | 89 ms | 112 ms | So the cost is waiting on copy-back, not extra title work. I'm now looking at which ranges get fetched back on that path. There are a few ~0.9 MB ones (720p-texture sized), each fetched about 15 times a frame, and they show up more on the FidelityFX path. *AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images.*
loftymocha commented 2026-11-29 03:44:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-29T03:44:21Z.


Second correction to my DLSS-on-hybrid post: the "FidelityFX path costs about a third of the frame rate" conclusion doesn't hold up. I compared against a run from the day before. Matched back-to-back pairs on the same boat stretch (same day, same settings, ~2.5 min on the boat each) show no real cost:

pair (Series S, 1080p out) title's own upscaler FidelityFX path + DLSS Quality
with a frame timeline recording 12.6 fps 12.3 fps
nothing extra recording 8.5 fps (7.9–9.1) 10.0 fps (8.5–12.0)

The spread between runs of the same build (8.5–12.6 fps on one evening, ~16 the day before) is bigger than any difference between the two paths. So on nvidia-hybrid-v2 with the Streamline port, DLSS is roughly free on this RTX 5070 and gives the sharper picture. The earlier table's per-stage numbers were real for those runs, but they compared different sessions. Sorry for the noise. Lesson learned: only compare back-to-back pairs.

The frame timelines (12 frames each) do show the frames waiting in different places. On the own-upscaler path it's mostly work sent to the card that hasn't started yet (~20 ms a frame); on the FidelityFX path it's mostly title code (~21 ms). The totals come out the same.

AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7250229608 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1268#issuecomment-7250229608). Originally posted by [loftymocha](https://github.com/loftymocha) on 2026-11-29T03:44:21Z. --- Second correction to my DLSS-on-hybrid post: **the "FidelityFX path costs about a third of the frame rate" conclusion doesn't hold up.** I compared against a run from the day before. Matched back-to-back pairs on the same boat stretch (same day, same settings, ~2.5 min on the boat each) show no real cost: | pair (Series S, 1080p out) | title's own upscaler | FidelityFX path + DLSS Quality | |---|---|---| | with a frame timeline recording | 12.6 fps | 12.3 fps | | nothing extra recording | 8.5 fps (7.9–9.1) | 10.0 fps (8.5–12.0) | The spread between runs of the *same* build (8.5–12.6 fps on one evening, ~16 the day before) is bigger than any difference between the two paths. So on `nvidia-hybrid-v2` with the Streamline port, DLSS is roughly free on this RTX 5070 and gives the sharper picture. The earlier table's per-stage numbers were real for those runs, but they compared different sessions. Sorry for the noise. Lesson learned: only compare back-to-back pairs. The frame timelines (12 frames each) do show the frames waiting in different places. On the own-upscaler path it's mostly work sent to the card that hasn't started yet (~20 ms a frame); on the FidelityFX path it's mostly title code (~21 ms). The totals come out the same. *AI-assisted (Claude Code). Numbers from my own runs' logs; no game data or images.*
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork#1265
No description provided.