Integration / RTX 3080 Ti validation stack on f85101b (16 PRs + #854 Wave64 + #868 + CBV clamp) #770

Open
ExoCalibra wants to merge 43 commits from upstream-pr/770 into main
ExoCalibra commented 2026-11-25 07:06:40 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ExoCalibra on 2026-11-25T07:06:40Z.


Summary

Validation & integration stack rebased cleanly onto official main (f85101b — "Frame rate, second night") for Windows 11 + NVIDIA RTX 3080 Ti (12 GB VRAM, SM 6.6, Wave32, 64 GB RAM) running retail Xbox Series X|S (v1.0.2.1), maintained in ExoCalibra/victory-exo.

Combines f85101b (VICTORY_ASYNC_SUBMIT=1, VICTORY_QUEUE2=1, VICTORY_INDIRECT_WINDOW=1, fill-ahead, 512 idle host lists, staging buffer reuse) with 16 cleanly integrated community PRs plus our own integration & stability fixes.


Community PRs Included (16)

Performance & Sync (f85101b generation)

  • #868 — Card copies census + write-combining memory left on card (VICTORY_SKIP_WC_COMPARE=1, ~8× less copy-back: 40 ms / 60 MB → 5.2 ms / 2.4 MB)
  • #860 — Stop false trips of the fill_ahead latch (avoids ~100 ms/frame submit stalls)
  • #857 — Coalesce nearby copy-back runs into batched writes
  • #864 — Clamp indirect window records in lane order, not scheduler order
  • #812 — Park unmapped view blocks instead of VirtualQuery-ing them every check (~88k → 6 calls/frame)
  • #768 — Parallel submission texture checks (VICTORY_WIDE_TEXTURES=1)
  • #845 — Allow first-use pipeline scheduling with a warm cache

Shaders & Wave32 / NVIDIA

  • #854 — Paired Wave64 on 32-lane GPUs + mesh programs >32 KiB linked with pixel programs (3,199 / 3,199 shaders translated, 0 refused pipelines, 0 untranslated shaders; eliminates dark square shirt-edge artifacts on NVIDIA)

Rendering, Textures, Series S & Input

  • #798 — Series S keeps its own upscaler instead of FSR 4 (fixes Series S black screen)
  • #795 — Keep on-demand texture tiles alive while anything names the texture
  • #764 — Refresh tiled texture slots for tabled views and stale first_shown (fixes character skin/arm BC-block corruption)
  • #765 — Preserve Tiled::held and update judged when on-demand detile() is skipped
  • #715 — Disable blending on integer render targets (NVIDIA fix)
  • #644 — Preserve RGBA8 sRGB/linear shader views where host can cast
  • #510 — Inline uploads for rotating movie-ring textures (fixes intro video frame jumping)
  • #577 — PC keyboard & mouse controls + rebindable [controls]

Our Own Integration & Fix Work

  • 88f2b82 (CBV 64 KiB clamp): Clamps D3D12_CONSTANT_BUFFER_VIEW_DESC.SizeInBytes to D3D12's 64 KiB (65536) limit (checked_next_multiple_of(256)) in crates/victory-gpu/src/descriptor/host.rs, preventing NVIDIA 0x887A0001 (DXGI_ERROR_INVALID_CALL) device removals on oversized title CBVs.
  • eabd5ee (#765 + #510 + f85101b test integration): Updated #765's Staging unit test in crates/victory-gpu/src/texture.rs for #510's motion_copy / frame parameter and f85101b's pooled field so all three PRs compose cleanly.
  • d034ac1 (#853 vs #812 conflict triage): Verified via victory-gpu unit tests that #853 regressed 4 multi-view watch::tests when combined with #812; reverted #853 to keep all 174 victory-gpu tests green.
  • RTX 3080 Ti launch profile & live telemetry: Verified zero-crash switch combination (VICTORY_ASYNC_SUBMIT=1, VICTORY_QUEUE2=1, VICTORY_SKIP_WC_COMPARE=1, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_CARD_FETCH_INFLIGHT=1, VICTORY_WIDE_TEXTURES=1, VICTORY_INDIRECT_WINDOW=1, VICTORY_CARD_BUFFERS_MB=1024).

(Special thanks to @ArturoWolff for Linux/dxv replay checks and @HLVM04 for RTX 5070 Ti Series S cross-architecture validation.)


Verification (RTX 3080 Ti 12 GB, Windows 11, Series X, v1.0.2.1)

  • cargo xtask policy: 183 files ok (lower.rs = 501,927 / 524,288 bytes)
  • victory-gpu: 174 passed (4 ignored, 0 failed)
  • victory-hle: 118 passed (0 failed)
  • Shader cache warm-up (translate --warm): 3,199 / 3,199 translated (0 do not translate) in 91.4 s on 4 threads
Metric (4,700–6,100 draws/frame) Previous (9376fd6) Now (f85101b stack) Delta
Steady FPS 4.1–4.7 fps 7.8–8.8 fps (10+ fps peaks) ~2× faster
Frame time 213–243 ms 113.2–127.8 ms −48%
GPU time 81–147 ms 29.6–47.5 ms ~3× faster
copying back 38–42 ms (50–66 MB) 5.2–7.2 ms (2.4–2.9 MB) ~8× faster
preparing / copies 83–96 ms (150–163 MB) 55–66 ms (60–76 MB) ~2× less copied
Refused / untranslated shaders 7 refused, 1 untranslated 0 refused, 0 untranslated 100% clean
Crashes / Device removals 0 0 Clean

Visuals confirmed on live run:

  • Dark square silhouette artifacts on Lucia's shirt edge: gone (#854).
  • Guard's arm rainbow/purple BC-block corruption: fixed (#764 + #765).
  • Remaining minor artifacts: subtle stair-stepping on hair/neck edges and pixelated wall decals, plus brief 1 fps dips during heavy cutscene asset streaming.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6599175070 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770). Originally posted by [ExoCalibra](https://github.com/ExoCalibra) on 2026-11-25T07:06:40Z. --- ### Summary Validation & integration stack rebased cleanly onto official `main` (**`f85101b`** — *"Frame rate, second night"*) for **Windows 11 + NVIDIA RTX 3080 Ti (12 GB VRAM, SM 6.6, Wave32, 64 GB RAM)** running retail Xbox Series X|S (`v1.0.2.1`), maintained in **`ExoCalibra/victory-exo`**. Combines `f85101b` (`VICTORY_ASYNC_SUBMIT=1`, `VICTORY_QUEUE2=1`, `VICTORY_INDIRECT_WINDOW=1`, fill-ahead, 512 idle host lists, staging buffer reuse) with **16 cleanly integrated community PRs** plus **our own integration & stability fixes**. --- ### Community PRs Included (16) **Performance & Sync (`f85101b` generation)** - #868 — Card copies census + write-combining memory left on card (`VICTORY_SKIP_WC_COMPARE=1`, **~8× less copy-back: 40 ms / 60 MB → 5.2 ms / 2.4 MB**) - #860 — Stop false trips of the `fill_ahead` latch (avoids ~100 ms/frame submit stalls) - #857 — Coalesce nearby copy-back runs into batched writes - #864 — Clamp indirect window records in lane order, not scheduler order - #812 — Park unmapped view blocks instead of `VirtualQuery`-ing them every check (~88k → 6 calls/frame) - #768 — Parallel submission texture checks (`VICTORY_WIDE_TEXTURES=1`) - #845 — Allow first-use pipeline scheduling with a warm cache **Shaders & Wave32 / NVIDIA** - #854 — Paired Wave64 on 32-lane GPUs + mesh programs >32 KiB linked with pixel programs (**3,199 / 3,199 shaders translated, 0 refused pipelines, 0 untranslated shaders**; eliminates dark square shirt-edge artifacts on NVIDIA) **Rendering, Textures, Series S & Input** - #798 — Series S keeps its own upscaler instead of FSR 4 (fixes Series S black screen) - #795 — Keep on-demand texture tiles alive while anything names the texture - #764 — Refresh tiled texture slots for tabled views and stale `first_shown` (fixes character skin/arm BC-block corruption) - #765 — Preserve `Tiled::held` and update `judged` when on-demand `detile()` is skipped - #715 — Disable blending on integer render targets (NVIDIA fix) - #644 — Preserve RGBA8 sRGB/linear shader views where host can cast - #510 — Inline uploads for rotating movie-ring textures (fixes intro video frame jumping) - #577 — PC keyboard & mouse controls + rebindable `[controls]` --- ### Our Own Integration & Fix Work - **`88f2b82` (CBV 64 KiB clamp):** Clamps `D3D12_CONSTANT_BUFFER_VIEW_DESC.SizeInBytes` to D3D12's 64 KiB (`65536`) limit (`checked_next_multiple_of(256)`) in `crates/victory-gpu/src/descriptor/host.rs`, preventing NVIDIA `0x887A0001` (`DXGI_ERROR_INVALID_CALL`) device removals on oversized title CBVs. - **`eabd5ee` (`#765` + `#510` + `f85101b` test integration):** Updated `#765`'s `Staging` unit test in `crates/victory-gpu/src/texture.rs` for `#510`'s `motion_copy` / `frame` parameter and `f85101b`'s `pooled` field so all three PRs compose cleanly. - **`d034ac1` (`#853` vs `#812` conflict triage):** Verified via `victory-gpu` unit tests that `#853` regressed 4 multi-view `watch::tests` when combined with `#812`; reverted `#853` to keep all 174 `victory-gpu` tests green. - **RTX 3080 Ti launch profile & live telemetry:** Verified zero-crash switch combination (`VICTORY_ASYNC_SUBMIT=1`, `VICTORY_QUEUE2=1`, `VICTORY_SKIP_WC_COMPARE=1`, `VICTORY_LEVELS_ON_DEMAND=1`, `VICTORY_CARD_FETCH_INFLIGHT=1`, `VICTORY_WIDE_TEXTURES=1`, `VICTORY_INDIRECT_WINDOW=1`, `VICTORY_CARD_BUFFERS_MB=1024`). *(Special thanks to @ArturoWolff for Linux/dxv replay checks and @HLVM04 for RTX 5070 Ti Series S cross-architecture validation.)* --- ### Verification (RTX 3080 Ti 12 GB, Windows 11, Series X, `v1.0.2.1`) - `cargo xtask policy`: **183 files ok** (`lower.rs` = 501,927 / 524,288 bytes) - `victory-gpu`: **174 passed** (4 ignored, 0 failed) - `victory-hle`: **118 passed** (0 failed) - Shader cache warm-up (`translate --warm`): **3,199 / 3,199 translated (`0 do not translate`)** in 91.4 s on 4 threads | Metric (4,700–6,100 draws/frame) | Previous (`9376fd6`) | Now (`f85101b` stack) | Delta | |---|---|---|---| | **Steady FPS** | `4.1–4.7 fps` | **`7.8–8.8 fps`** *(10+ fps peaks)* | **~2× faster** | | **Frame time** | `213–243 ms` | **`113.2–127.8 ms`** | **−48%** | | **GPU time** | `81–147 ms` | **`29.6–47.5 ms`** | **~3× faster** | | **`copying back`** | `38–42 ms` (`50–66 MB`) | **`5.2–7.2 ms` (`2.4–2.9 MB`)** | **~8× faster** | | **`preparing` / `copies`** | `83–96 ms` (`150–163 MB`) | **`55–66 ms` (`60–76 MB`)** | **~2× less copied** | | **Refused / untranslated shaders** | `7 refused, 1 untranslated` | **`0 refused, 0 untranslated`** | **100% clean** | | **Crashes / Device removals** | `0` | **`0`** | Clean | **Visuals confirmed on live run:** - Dark square silhouette artifacts on Lucia's shirt edge: **gone** (`#854`). - Guard's arm rainbow/purple BC-block corruption: **fixed** (`#764` + `#765`). - Remaining minor artifacts: subtle stair-stepping on hair/neck edges and pixelated wall decals, plus brief 1 fps dips during heavy cutscene asset streaming.
ArturoWolff commented 2026-11-25 08:08:59 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ArturoWolff on 2026-11-25T07:20:38Z.


I replayed two retained Linux/Proton shader samples against the stack at 17b9f09 and its common base 8dd30ab, using the direct translator on Linux, hash-checked inputs, a 32-lane compiler limit, and independent builds. This is a different sample from your 1,164 runtime hashes.

  • All 725 named programs from our older black frame 2256 translated on both revisions. On the stack, 725/725 passed dxv; 364 outputs matched the base byte for byte and 361 changed (160 compute, 139 pixel, 60 mesh, 2 vertex). The final-composite pixel shader 4f4ec7b16673362f itself stayed byte-identical. This makes its inputs and the earlier passes more informative comparison points than retranslating that final shader alone.
  • In a separate nine-input set selected to include prior refusals and controls, the base emitted four and the stack emitted seven; all seven passed dxv. The gains were the three #279 puddle pixels. Two refusals remain useful as out-of-sample checks: ceb5eb68cd99cb07 (shallow-water timestep, descriptor address/format at 0x38) and f133e35efed2a48a (lane mask at 0x1eb4). The former did translate on the earlier #203 replay. These are overlapping gains, not three new shaders beyond #203 or #749.

This checks translator coverage, not a Linux gameplay run, PSO creation, or the cause of the black frame. I haven't attributed any of the 361 differences to individual PRs. No game files or captures attached.

AI disclosure: Hermes Agent ran the replay and validation and wrote this comment on ArturoWolff’s behalf.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7155755077 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7155755077). Originally posted by [ArturoWolff](https://github.com/ArturoWolff) on 2026-11-25T07:20:38Z. --- I replayed two retained Linux/Proton shader samples against the stack at `17b9f09` and its common base `8dd30ab`, using the direct translator on Linux, hash-checked inputs, a 32-lane compiler limit, and independent builds. This is a different sample from your 1,164 runtime hashes. - All 725 named programs from our older black frame 2256 translated on both revisions. On the stack, 725/725 passed `dxv`; 364 outputs matched the base byte for byte and 361 changed (160 compute, 139 pixel, 60 mesh, 2 vertex). The final-composite pixel shader `4f4ec7b16673362f` itself stayed byte-identical. This makes its inputs and the earlier passes more informative comparison points than retranslating that final shader alone. - In a separate nine-input set selected to include prior refusals and controls, the base emitted four and the stack emitted seven; all seven passed `dxv`. The gains were the three #279 puddle pixels. Two refusals remain useful as out-of-sample checks: `ceb5eb68cd99cb07` (shallow-water timestep, descriptor address/format at `0x38`) and `f133e35efed2a48a` (lane mask at `0x1eb4`). The former **did** translate on [the earlier #203 replay](https://github.com/fxceless/victory-fork/pull/203#issuecomment-7154548553). These are overlapping gains, not three new shaders beyond #203 or #749. This checks translator coverage, not a Linux gameplay run, PSO creation, or the cause of the black frame. I haven't attributed any of the 361 differences to individual PRs. No game files or captures attached. AI disclosure: Hermes Agent ran the replay and validation and wrote this comment on ArturoWolff’s behalf.
upstream-sync changed title from [PR #770] Integration / RTX 3080 Ti validation stack on 9376fd6 (12 PRs + #518/inflight + CBV clamp) to [PR #770] Integration / RTX 3080 Ti validation stack on 9376fd6 (16 PRs + #518/inflight + CBV clamp) 2026-11-25 09:08:36 +00:00
ExoCalibra commented 2026-11-25 09:08:51 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ExoCalibra on 2026-11-25T08:54:11Z.


Updated the stack (fast-forward on 9376fd6) with 4 additional GPU-only PRs (#795, #768, #793, #783) and verified across a 28-minute, 94,140-line RTX 3080 Ti run (0 errors, 0 crashes, 0 device removals, victory-gpu 156/156 passed, xtask policy 174 files ok):

Metric (~4,600–4,800 draws/frame) Previous (42e2aa3) Updated (+ #795, #768, #793, #783)
FPS 2.9–3.7 fps 4.1 fps (2.6–2.9 fps at ~7,000 draws)
Frame time 273.7–344.5 ms 241.6–243.6 ms
GPU time 134.1–184.0 ms 111.5–112.6 ms (#793)
CPU preparing 106.5–126.8 ms 89.8–95.3 ms (#768, #783)
copying back 44.2–53.9 ms 40.2–41.6 ms (#783)
heap buffers 40.1–62.4 ms 27.0–31.5 ms steady (#783)

Because none of the 4 added PRs modify victory-shader, the DXIL shader cache stayed 100% warm (hits=3101, misses=0).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7157615509 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7157615509). Originally posted by [ExoCalibra](https://github.com/ExoCalibra) on 2026-11-25T08:54:11Z. --- Updated the stack (fast-forward on `9376fd6`) with **4 additional GPU-only PRs** (#795, #768, #793, #783) and verified across a 28-minute, 94,140-line RTX 3080 Ti run (**0 errors, 0 crashes, 0 device removals**, `victory-gpu` 156/156 passed, `xtask policy` 174 files ok): | Metric (~4,600–4,800 draws/frame) | Previous (`42e2aa3`) | Updated (+ #795, #768, #793, #783) | |---|---|---| | **FPS** | `2.9–3.7 fps` | **`4.1 fps`** *(2.6–2.9 fps at ~7,000 draws)* | | **Frame time** | `273.7–344.5 ms` | **`241.6–243.6 ms`** | | **GPU time** | `134.1–184.0 ms` | **`111.5–112.6 ms`** (#793) | | **CPU `preparing`** | `106.5–126.8 ms` | **`89.8–95.3 ms`** (#768, #783) | | **`copying back`** | `44.2–53.9 ms` | **`40.2–41.6 ms`** (#783) | | **`heap buffers`** | `40.1–62.4 ms` | **`27.0–31.5 ms`** steady (#783) | Because none of the 4 added PRs modify `victory-shader`, the DXIL shader cache stayed 100% warm (`hits=3101, misses=0`).
upstream-sync changed title from [PR #770] Integration / RTX 3080 Ti validation stack on 9376fd6 (16 PRs + #518/inflight + CBV clamp) to [PR #770] Integration / RTX 3080 Ti validation stack on 9376fd6 (22 PRs + #518/inflight + CBV clamp) 2026-11-25 10:10:58 +00:00
ExoCalibra commented 2026-11-25 10:11:12 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ExoCalibra on 2026-11-25T09:32:40Z.


Updated branch (2b4ee0c..28b74a9, fast-forward) with 6 additional verified performance PRs:

  • #780 (VICTORY_INDIRECT_KEEP=1 + VICTORY_INDIRECT_WINDOW=1)
  • #781 (pooled texture staging buffers)
  • #805 (CardInflight::brought retention fix)
  • #808 (hardware DXIL dot4AddPacked / mad lowering)
  • #809 (HLE xmem skip redundant MEM_COMMIT on GPU aliases)
  • #812 (park unmapped view blocks instead of VirtualQuery every check)

Live RTX 3080 Ti results ( 1.0.2.1, Series X)

  • Heavy scene (~6,800–7,100 draws/frame): 2.6–2.9 fps (345–385 ms) → 4.5–4.7 fps (213–222 ms)
  • Lighter scene (~4,800 draws/frame): 4.1 fps (242 ms) → 4.2–4.6 fps (216–236 ms)
  • #812: 100,624 unmapped blocks parked (6 VirtualQuery calls/frame)
  • #781: texture upload pass 4.8–8.2 ms/frame (heap texture pass 0.2 ms)
  • Policy & tests: cargo xtask policy (175 files ok), ictory-gpu (161/161), ictory-hle (117/117), ictory-shader (packed_dot_products_and_clamps_execute_cleanly passed). Zero crashes or device removals.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7158472695 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7158472695). Originally posted by [ExoCalibra](https://github.com/ExoCalibra) on 2026-11-25T09:32:40Z. --- Updated branch (2b4ee0c..28b74a9, fast-forward) with **6 additional verified performance PRs**: - #780 (VICTORY_INDIRECT_KEEP=1 + VICTORY_INDIRECT_WINDOW=1) - #781 (pooled texture staging buffers) - #805 (CardInflight::brought retention fix) - #808 (hardware DXIL dot4AddPacked / mad lowering) - #809 (HLE xmem skip redundant MEM_COMMIT on GPU aliases) - #812 (park unmapped view blocks instead of VirtualQuery every check) ### Live RTX 3080 Ti results ( 1.0.2.1, Series X) - Heavy scene (~6,800–7,100 draws/frame): **2.6–2.9 fps (345–385 ms)** → **4.5–4.7 fps (213–222 ms)** - Lighter scene (~4,800 draws/frame): **4.1 fps (242 ms)** → **4.2–4.6 fps (216–236 ms)** - #812: 100,624 unmapped blocks parked (**6 VirtualQuery calls/frame**) - #781: texture upload pass **4.8–8.2 ms/frame** (heap texture pass **0.2 ms**) - Policy & tests: cargo xtask policy (175 files ok), ictory-gpu (161/161), ictory-hle (117/117), ictory-shader (packed_dot_products_and_clamps_execute_cleanly passed). Zero crashes or device removals.
HLVM04 commented 2026-11-25 10:11:17 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HLVM04 on 2026-11-25T10:08:32Z.


A check on a different architecture: RTX 5070 Ti 16 GB (Blackwell, 32-lane only, driver 616.64), Series S profile. This was an earlier head of the stack (16 PRs, before the latest additions), merged onto 9376fd6 + #798 #783 #799 #780. Percentiles of the frame lines after the first 60 s (two runs with the stack):

p10 / p25 / p50 p90 max
without the stack 143 / 154 / 158 ms 338 ms –
with the stack 144–147 / 148–151 / 150–154 ms 509–642 ms 1.1–1.4 s
  • Steady state is about the same; the spikes around scene loads were larger with the stack.
  • The picture in the first world scene was clearly more correct: several textures and colours that were wrong before (hair, a wall texture, clothing print) now render right.
  • No device loss. 2 pipelines still refused, 1 shader untranslated.
  • The merge conflicted only in the CBV clamp (same intent as #799's cbv_size) and in two new tests in indirect.rs (#780 vs #793); both sides were kept.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7159281881 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7159281881). Originally posted by [HLVM04](https://github.com/HLVM04) on 2026-11-25T10:08:32Z. --- A check on a different architecture: RTX 5070 Ti 16 GB (Blackwell, 32-lane only, driver 616.64), Series S profile. This was an earlier head of the stack (16 PRs, before the latest additions), merged onto `9376fd6` + #798 #783 #799 #780. Percentiles of the frame lines after the first 60 s (two runs with the stack): | | p10 / p25 / p50 | p90 | max | |---|---|---|---| | without the stack | 143 / 154 / 158 ms | 338 ms | – | | with the stack | 144–147 / 148–151 / 150–154 ms | 509–642 ms | 1.1–1.4 s | - Steady state is about the same; the spikes around scene loads were larger with the stack. - The picture in the first world scene was clearly more correct: several textures and colours that were wrong before (hair, a wall texture, clothing print) now render right. - No device loss. 2 pipelines still refused, 1 shader untranslated. - The merge conflicted only in the CBV clamp (same intent as #799's `cbv_size`) and in two new tests in `indirect.rs` (#780 vs #793); both sides were kept.
upstream-sync changed title from [PR #770] Integration / RTX 3080 Ti validation stack on 9376fd6 (22 PRs + #518/inflight + CBV clamp) to [PR #770] Integration / RTX 3080 Ti validation stack on f85101b (16 PRs + #854 Wave64 + #868 + CBV clamp) 2026-11-25 12:06:48 +00:00
ExoCalibra commented 2026-11-25 12:07:03 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ExoCalibra on 2026-11-25T11:32:50Z.


Rebased the validation stack cleanly onto official main (f85101b — "Frame rate, second night") and resolved all merge conflicts (ExoCalibra/victory-exo).

What's new in this rebase (d034ac1)

  • New base: f85101b (VICTORY_ASYNC_SUBMIT=1, VICTORY_QUEUE2=1, VICTORY_INDIRECT_WINDOW=1, fill-ahead, 512 idle host lists, staging buffer reuse)
  • New PRs integrated: #868 (VICTORY_SKIP_WC_COMPARE=1), #860 (fill_ahead latch fix), #857 (batched copy-back runs), #864 (lane-order indirect windows), #854 (paired Wave64 on 32-lane GPUs + 230 more shaders), #798 (Series S upscaler), #764 & #765 (tiled on-demand texture fixes), #845 (warm-cache pipeline scheduling) — alongside #812, #768, #795, #715, #644, #510, #577.
  • Our own integration work: 64 KiB CBV clamp (88f2b82), #765/#510/f85101b Staging test fix (eabd5ee), and reverting #853 after victory-gpu caught a 4-test watch.rs conflict with #812 (d034ac1).

Live RTX 3080 Ti Results (Series X, 4,700–6,100 draws/frame)

  • Steady FPS: 4.1–4.7 fps → 7.8–8.8 fps (10+ fps peaks)
  • Frame time: 213–243 ms → 113.2–127.8 ms
  • GPU time: 81–147 ms → 29.6–47.5 ms
  • copying back: 38–42 ms (50–66 MB) → 5.2–7.2 ms (2.4–2.9 MB)
  • Shaders: 3,199 / 3,199 translated (0 do not translate, 0 refused pipelines) — @HLVM04 this clears the last 2 refused pipelines + 1 untranslated shader from your RTX 5070 Ti check!
  • Visuals: Lucia's shirt dark square edge artifacts are gone (#854) and the guard's arm texture corruption is fixed (#764 + #765).
  • Checks: cargo xtask policy (183 files ok), victory-gpu (174/174), victory-hle (118/118). Zero crashes or device removals.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7161187703 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7161187703). Originally posted by [ExoCalibra](https://github.com/ExoCalibra) on 2026-11-25T11:32:50Z. --- Rebased the validation stack cleanly onto official `main` (**`f85101b`** — *"Frame rate, second night"*) and resolved all merge conflicts (`ExoCalibra/victory-exo`). ### What's new in this rebase (`d034ac1`) - **New base:** `f85101b` (`VICTORY_ASYNC_SUBMIT=1`, `VICTORY_QUEUE2=1`, `VICTORY_INDIRECT_WINDOW=1`, fill-ahead, 512 idle host lists, staging buffer reuse) - **New PRs integrated:** #868 (`VICTORY_SKIP_WC_COMPARE=1`), #860 (`fill_ahead` latch fix), #857 (batched copy-back runs), #864 (lane-order indirect windows), #854 (paired Wave64 on 32-lane GPUs + 230 more shaders), #798 (Series S upscaler), #764 & #765 (tiled on-demand texture fixes), #845 (warm-cache pipeline scheduling) — alongside #812, #768, #795, #715, #644, #510, #577. - **Our own integration work:** 64 KiB CBV clamp (`88f2b82`), `#765`/`#510`/`f85101b` `Staging` test fix (`eabd5ee`), and reverting `#853` after `victory-gpu` caught a 4-test `watch.rs` conflict with `#812` (`d034ac1`). ### Live RTX 3080 Ti Results (Series X, 4,700–6,100 draws/frame) - **Steady FPS:** `4.1–4.7 fps` → **`7.8–8.8 fps`** *(10+ fps peaks)* - **Frame time:** `213–243 ms` → **`113.2–127.8 ms`** - **GPU time:** `81–147 ms` → **`29.6–47.5 ms`** - **`copying back`:** `38–42 ms (50–66 MB)` → **`5.2–7.2 ms (2.4–2.9 MB)`** - **Shaders:** **3,199 / 3,199 translated (`0 do not translate`, `0 refused pipelines`)** — @HLVM04 this clears the last 2 refused pipelines + 1 untranslated shader from your RTX 5070 Ti check! - **Visuals:** Lucia's shirt dark square edge artifacts are gone (`#854`) and the guard's arm texture corruption is fixed (`#764` + `#765`). - **Checks:** `cargo xtask policy` (`183 files ok`), `victory-gpu` (`174/174`), `victory-hle` (`118/118`). Zero crashes or device removals.
grosterr commented 2026-11-25 14:10:49 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by grosterr on 2026-11-25T13:26:14Z.


Heads-up for this stack: with VICTORY_WIDE_TEXTURES=1 (#768) and VICTORY_LEVELS_ON_DEMAND=1 together, some textures come out black or stale (on an RTX 3060: white blotches over a table and stools, a black towel, a black sheet of paper in the prologue bedroom). Cause, A/B runs and a few-line fix with a test are in https://github.com/fxceless/victory-fork/pull/768#issuecomment-7163763533. Measured on d034ac1 + main a253706: with the fix the picture is clean and the frame is 330 ms against 380 ms. AI-assisted (Claude Code); runs and observations are mine.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7163774882 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7163774882). Originally posted by [grosterr](https://github.com/grosterr) on 2026-11-25T13:26:14Z. --- Heads-up for this stack: with `VICTORY_WIDE_TEXTURES=1` (#768) and `VICTORY_LEVELS_ON_DEMAND=1` together, some textures come out black or stale (on an RTX 3060: white blotches over a table and stools, a black towel, a black sheet of paper in the prologue bedroom). Cause, A/B runs and a few-line fix with a test are in https://github.com/fxceless/victory-fork/pull/768#issuecomment-7163763533. Measured on `d034ac1` + main `a253706`: with the fix the picture is clean and the frame is 330 ms against 380 ms. AI-assisted (Claude Code); runs and observations are mine.
npanu420 commented 2026-11-25 14:10:49 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by npanu420 on 2026-11-25T13:26:44Z.


RTX 3070 8 GB + i9-9900X (10 cores, no hybrid), Windows 11, Series S profile. Data point for this stack.

Build: your d034ac1 + #809, #95, #108 (moves) + #827 + #154, a port of #523, and fork main 0b0074e merged on top.

Switches: ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 SKIP_WC_COMPARE=1 LEVELS_ON_DEMAND=1 EARLY_TEXTURES_MS=40 CARD_REHASH_RUNS=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1024 TEXTURE_NO_WAIT=1 PIPELINE_WAIT_MS=24 JOIN_COPIES=1 BAKE_TEXTURES_MS=0.

Steady play (median over world frames ≥ 400, 6-minute runs):

  • standing at the cell window: 188.0 / 188.7 ms (5.3 fps);
  • walking into the cell (about 7,000 draws): 215.7 ms;
  • no crashes, no device removals, no driver-watch events.

The first ~400 world frames, while the scene streams in, run 280-365 ms.

Per frame: submit thread busy 150 ms, made up of:

  • preparing 88 ms (copies 39 ms / 74 MB);
  • heap pass 44 ms;
  • write-watch 31 ms;
  • waiting for the card 27 ms.

The card is about 71-77% busy and the render thread spends 85 ms in Present.

On this machine:

  • d034ac1 alone: 301 ms over frames 60-400 (vs 281 with #809/#95/#108).
  • #827 + #154 merged: copies 76 → 32 ms.
  • CARD_FETCH_INFLIGHT=1 dropped, as main's README says, since it is not to be combined with INDIRECT_WINDOW.
  • COPY_PLAIN=1: no gain (202 vs 192 ms whole-session).
  • COPY_FAST=1: crashed 1 of 3 launches (details on #827).
  • BAKE_TEXTURES_MS=0 matters a lot on 8 GB cards (#594).

(AI-assisted, Claude Code. No game data.)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7163787096 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7163787096). Originally posted by [npanu420](https://github.com/npanu420) on 2026-11-25T13:26:44Z. --- RTX 3070 8 GB + i9-9900X (10 cores, no hybrid), Windows 11, **Series S** profile. Data point for this stack. **Build:** your `d034ac1` + #809, #95, #108 (moves) + #827 + #154, a port of #523, and fork main `0b0074e` merged on top. **Switches:** `ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 SKIP_WC_COMPARE=1 LEVELS_ON_DEMAND=1 EARLY_TEXTURES_MS=40 CARD_REHASH_RUNS=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1024 TEXTURE_NO_WAIT=1 PIPELINE_WAIT_MS=24 JOIN_COPIES=1 BAKE_TEXTURES_MS=0`. **Steady play** (median over world frames ≥ 400, 6-minute runs): - standing at the cell window: **188.0 / 188.7 ms (5.3 fps)**; - walking into the cell (about 7,000 draws): 215.7 ms; - no crashes, no device removals, no driver-watch events. The first ~400 world frames, while the scene streams in, run 280-365 ms. **Per frame:** submit thread busy 150 ms, made up of: - preparing 88 ms (copies 39 ms / 74 MB); - heap pass 44 ms; - write-watch 31 ms; - waiting for the card 27 ms. The card is about 71-77% busy and the render thread spends 85 ms in Present. **On this machine:** - `d034ac1` alone: 301 ms over frames 60-400 (vs 281 with #809/#95/#108). - #827 + #154 merged: copies 76 → 32 ms. - `CARD_FETCH_INFLIGHT=1` dropped, as main's README says, since it is not to be combined with `INDIRECT_WINDOW`. - `COPY_PLAIN=1`: no gain (202 vs 192 ms whole-session). - `COPY_FAST=1`: crashed 1 of 3 launches (details on #827). - `BAKE_TEXTURES_MS=0` matters a lot on 8 GB cards (#594). (AI-assisted, Claude Code. No game data.)
grosterr commented 2026-11-25 21:05:55 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by grosterr on 2026-11-25T20:33:45Z.


Heads-up for rebasing/merging this stack onto main (465b94f / d510ee4, VICTORY_INDIRECT_GATHER=1): there is one non-conflicting auto-merge trap in crates/victory-gpu/src/indirect.rs besides the HLSL conflict.

  1. HLSL (SOURCE): keep #864's uint index = base + gi; and replace id.x with index in the gather branch:
bool active = index < eff_count;
uint src_at = args_offset + index * stride;
[branch]
if ((has_count & 4u) != 0) {
    src_at = count_buf.Load(count_offset + index * 4u);
}
uint dst_at = index * stride;
  1. record_gather_as (auto-merges without a git conflict!): main's record_gather_as passes only 6 root constants (SetComputeRoot32BitConstants(0, 6, ...)) and runs a single l.Dispatch(records.div_ceil(64), 1, 1). With #864's 7-constant cbuffer Record (uint base; at word 6), that leaves base uninitialized and breaks any gather batch with > 64 records. Matching record_clamp_as fixes it:
let constants = [kind, stride, records, 0u32, 4u32, 0u32, 0u32];
...
unsafe {
    l.ResourceBarrier(&first);
    l.SetComputeRootSignature(&c.root);
    l.SetPipelineState(&c.pso);
    l.SetComputeRootShaderResourceView(1, src_gpu);
    l.SetComputeRootShaderResourceView(2, table_gpu);
    l.SetComputeRootUnorderedAccessView(3, dst_gpu);
    l.SetComputeRootUnorderedAccessView(4, budget);
    let mut offset: u32 = 0;
    while offset < records {
        let mut chunk = constants;
        chunk[6] = offset;
        l.SetComputeRoot32BitConstants(0, 7, chunk.as_ptr().cast(), 0);
        l.Dispatch(1, 1, 1);
        offset += 64;
        if offset < records {
            l.ResourceBarrier(&[uav_barrier()]);
        }
    }
    l.ResourceBarrier(&second);
}

Verified on this merged tree (#770 + d510ee4 + #1014): cargo test -p victory-gpu 199/0 (including warp_gathered_records_come_out_as_if_clamped_one_by_one), and tested in-game on RTX 3060 12 GB with VICTORY_INDIRECT_GATHER=1 (G4 alone: 198 ms / 5.05 fps; full set: 174–198 ms / 5.0–5.7 fps, 0 errors, 0 device loss, clean picture).

AI-assisted (Claude Code / Antigravity); the runs and observations are mine.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7173855026 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7173855026). Originally posted by [grosterr](https://github.com/grosterr) on 2026-11-25T20:33:45Z. --- Heads-up for rebasing/merging this stack onto `main` (`465b94f` / `d510ee4`, `VICTORY_INDIRECT_GATHER=1`): there is one non-conflicting auto-merge trap in `crates/victory-gpu/src/indirect.rs` besides the HLSL conflict. 1. **HLSL (`SOURCE`):** keep `#864`'s `uint index = base + gi;` and replace `id.x` with `index` in the gather branch: ```hlsl bool active = index < eff_count; uint src_at = args_offset + index * stride; [branch] if ((has_count & 4u) != 0) { src_at = count_buf.Load(count_offset + index * 4u); } uint dst_at = index * stride; ``` 2. **`record_gather_as` (auto-merges without a git conflict!):** `main`'s `record_gather_as` passes only 6 root constants (`SetComputeRoot32BitConstants(0, 6, ...)`) and runs a single `l.Dispatch(records.div_ceil(64), 1, 1)`. With `#864`'s 7-constant `cbuffer Record` (`uint base;` at word 6), that leaves `base` uninitialized and breaks any gather batch with `> 64` records. Matching `record_clamp_as` fixes it: ```rust let constants = [kind, stride, records, 0u32, 4u32, 0u32, 0u32]; ... unsafe { l.ResourceBarrier(&first); l.SetComputeRootSignature(&c.root); l.SetPipelineState(&c.pso); l.SetComputeRootShaderResourceView(1, src_gpu); l.SetComputeRootShaderResourceView(2, table_gpu); l.SetComputeRootUnorderedAccessView(3, dst_gpu); l.SetComputeRootUnorderedAccessView(4, budget); let mut offset: u32 = 0; while offset < records { let mut chunk = constants; chunk[6] = offset; l.SetComputeRoot32BitConstants(0, 7, chunk.as_ptr().cast(), 0); l.Dispatch(1, 1, 1); offset += 64; if offset < records { l.ResourceBarrier(&[uav_barrier()]); } } l.ResourceBarrier(&second); } ``` Verified on this merged tree (`#770` + `d510ee4` + `#1014`): `cargo test -p victory-gpu` 199/0 (including `warp_gathered_records_come_out_as_if_clamped_one_by_one`), and tested in-game on RTX 3060 12 GB with `VICTORY_INDIRECT_GATHER=1` (G4 alone: 198 ms / 5.05 fps; full set: 174–198 ms / 5.0–5.7 fps, 0 errors, 0 device loss, clean picture). AI-assisted (Claude Code / Antigravity); the runs and observations are mine.
grosterr commented 2026-11-25 23:10:00 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by grosterr on 2026-11-25T23:03:12Z.


More merge notes for this stack, for the next rebase onto main. Tree: this stack (d034ac1) with main merged in up to d827419, plus #1014, #1057, #1112, #1044, #1101, #1150, #1023, #1032, #1136, #1156 and #1031. Every test passes after the changes below (victory-gpu 216/0, victory-shader 245/0). Three places need a hand: the first merges with no textual conflict and shows up only as a failing test; the other two are conflicts whose resolution is not obvious:

1. Main 44bff61 (VICTORY_ABSENT_ONCE) vs #812's view set (VICTORY_VIEW_SET). Main's new test watch::tests::a_block_noted_uncommitted_is_asked_about_again_only_when_its_note_is_old fails in the stack (left: Some([]) right: Some([21798434])), passes on clean main, and passes in the stack with VICTORY_VIEW_SET=0. #812 parks a view block found uncommitted in a placeholder and asks Windows nothing more about it until the runtime tells of a mapping. A block mapped there "without a word", as the test does, therefore stays unseen. That is #812's design (only the runtime's replace calls can fill a placeholder, and they tell). So I made the expectation depend on view_set():

let parked = view_set();
let silent = |block: usize| if parked { Vec::new() } else { pages(block).collect() };
assert_eq!(guard_at(from, to, 1_100, KEEP), Some(silent(1)), "the note is old: the block is found (unless parked)");
// ...
assert_eq!(guard_at(from, to, 1_101, 0), Some(silent(3)));

Both switches attack the same VirtualQuery storm (main's run 279: ~690,000 questions in 20 s, 40–50 % answered from the 100 ms notes). With the view set on, placeholder blocks are not asked about at all, so ABSENT_ONCE probably has little left to do in this stack.

2. #1156 vs 05c5898 and #768's motion tracking (texture.rs). #1156 replaces refresh_unlocked (the read through the kernel during a remap) with a deferral, and a fresh staging buffer now waits for the mapping lock. Kept both sides: the deferral is Staging::defer_refresh with #1156's behaviour (asked = 0, DEFERRED count, staging keeps its last complete image and is not marked dirty, which #1156's remap_tests assert). observe_hash (motion) is untouched, because a refresh that reads nothing updates neither hash nor motion. Step 1 of 05c5898's on_demand_skipped_detile_preserves_none_and_updates_judged now checks the deferral: nothing read, detiled_levels() stays None, asked is reset. Its old scenario, a fresh staging buffer failing under NO_WAIT, can no longer happen, because a fresh buffer waits.

3. #1031 vs 5181f96 (descriptor/host.rs, tiles.rs). 5181f96 remembers a tiled slot's first_shown and remakes the slot when it changes. #1031 builds the view from the mask of resident levels (show_from → show_resident). The slot now remembers that mask (None while it is 0), and tiled_stale compares masks. So a slot is also remade when a hole closes and the first level stays the same, as #1031 intends. tabled_tiled_slot_remakes_when_first_shown_changes passes with VICTORY_LEVELS_ON_DEMAND=1. Tiled::first_shown stays, now for tests only.

Also, for the alias problem Ym1r1710 reported under #812 (protect_alias removing the other views' blocks from unclean): the stack's protect_alias at d034ac1 does not remove them, and a_write_is_reported_at_every_checked_view passes here.

RTX 3060 12 GB, Ryzen 7 5700X, Windows 11. Not run in a game yet with #1150–#1031; the base without them (main 9c184b3 + #1057/#1112/#1044/#1101) runs at 179 ms a frame with 0 errors.

AI-assisted (Claude Code); the merges were checked by me.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7177091407 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/770#issuecomment-7177091407). Originally posted by [grosterr](https://github.com/grosterr) on 2026-11-25T23:03:12Z. --- More merge notes for this stack, for the next rebase onto main. Tree: this stack (`d034ac1`) with main merged in up to `d827419`, plus #1014, #1057, #1112, #1044, #1101, #1150, #1023, #1032, #1136, #1156 and #1031. Every test passes after the changes below (`victory-gpu` 216/0, `victory-shader` 245/0). Three places need a hand: the first merges with no textual conflict and shows up only as a failing test; the other two are conflicts whose resolution is not obvious: **1. Main `44bff61` (`VICTORY_ABSENT_ONCE`) vs #812's view set (`VICTORY_VIEW_SET`).** Main's new test `watch::tests::a_block_noted_uncommitted_is_asked_about_again_only_when_its_note_is_old` fails in the stack (`left: Some([]) right: Some([21798434])`), passes on clean main, and passes in the stack with `VICTORY_VIEW_SET=0`. #812 parks a view block found uncommitted in a placeholder and asks Windows nothing more about it until the runtime tells of a mapping. A block mapped there "without a word", as the test does, therefore stays unseen. That is #812's design (only the runtime's replace calls can fill a placeholder, and they tell). So I made the expectation depend on `view_set()`: ```rust let parked = view_set(); let silent = |block: usize| if parked { Vec::new() } else { pages(block).collect() }; assert_eq!(guard_at(from, to, 1_100, KEEP), Some(silent(1)), "the note is old: the block is found (unless parked)"); // ... assert_eq!(guard_at(from, to, 1_101, 0), Some(silent(3))); ``` Both switches attack the same `VirtualQuery` storm (main's run 279: ~690,000 questions in 20 s, 40–50 % answered from the 100 ms notes). With the view set on, placeholder blocks are not asked about at all, so `ABSENT_ONCE` probably has little left to do in this stack. **2. #1156 vs `05c5898` and #768's motion tracking (`texture.rs`).** #1156 replaces `refresh_unlocked` (the read through the kernel during a remap) with a deferral, and a fresh staging buffer now waits for the mapping lock. Kept both sides: the deferral is `Staging::defer_refresh` with #1156's behaviour (`asked = 0`, DEFERRED count, staging keeps its last complete image and is not marked dirty, which #1156's `remap_tests` assert). `observe_hash` (motion) is untouched, because a refresh that reads nothing updates neither hash nor motion. Step 1 of `05c5898`'s `on_demand_skipped_detile_preserves_none_and_updates_judged` now checks the deferral: nothing read, `detiled_levels()` stays `None`, `asked` is reset. Its old scenario, a fresh staging buffer failing under `NO_WAIT`, can no longer happen, because a fresh buffer waits. **3. #1031 vs `5181f96` (`descriptor/host.rs`, `tiles.rs`).** `5181f96` remembers a tiled slot's `first_shown` and remakes the slot when it changes. #1031 builds the view from the mask of resident levels (`show_from` → `show_resident`). The slot now remembers that mask (`None` while it is 0), and `tiled_stale` compares masks. So a slot is also remade when a hole closes and the first level stays the same, as #1031 intends. `tabled_tiled_slot_remakes_when_first_shown_changes` passes with `VICTORY_LEVELS_ON_DEMAND=1`. `Tiled::first_shown` stays, now for tests only. Also, for the alias problem Ym1r1710 reported under #812 (`protect_alias` removing the other views' blocks from `unclean`): the stack's `protect_alias` at `d034ac1` does not remove them, and `a_write_is_reported_at_every_checked_view` passes here. RTX 3060 12 GB, Ryzen 7 5700X, Windows 11. Not run in a game yet with #1150–#1031; the base without them (main `9c184b3` + #1057/#1112/#1044/#1101) runs at 179 ms a frame with 0 errors. AI-assisted (Claude Code); the merges were checked by me.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/770:upstream-pr/770'
git switch 'upstream-pr/770'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/770'
git switch 'upstream-pr/770'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/770'
git switch 'upstream-pr/770'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/770'
git switch 'main'
git merge --squash 'upstream-pr/770'
git switch 'main'
git merge --ff-only 'upstream-pr/770'
git switch 'main'
git merge 'upstream-pr/770'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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!770
No description provided.