perf(gpu): default-on ReBAR GPU_UPLOAD for write-combined buffers and quiet GPU copyback skipping #277

Merged
Androtim merged 2 commits from upstream-pr/277 into main 2026-12-01 05:19:51 +00:00
Androtim commented 2026-12-01 02:29:54 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T02:29:54Z.


Summary

Addresses Pillar #1 of #276 (and copyback overhead tracked in #233 / #234) by making ReBAR D3D12_HEAP_TYPE_GPU_UPLOAD placement for write-combined title buffers and quiet GPU copyback skipping default-on, replacing the previous two-sided copyback/opt-in paths.

Changes

  1. Default-on ReBAR GPU_UPLOAD (wc_bar) and wc_no_back (crates/victory-gpu/src/shadow.rs, resource.rs):
    • Enables VICTORY_WC_BAR and VICTORY_WC_NO_BACK (1 MiB cutoff) by default (=0 acts as a kill-switch).
    • Read-only (!unordered) write-combined buffers qualify for single-sided D3D12_HEAP_TYPE_GPU_UPLOAD (D3D12_RESOURCE_FLAG_NONE) at any size, while shader-writable (unordered) write-combined buffers qualify at >= 1 MiB so smaller < 1 MiB UAV buffers retain two sides and do not have 64 KiB refresh chunks clobber shader outputs.
    • Aligns wc_mapped_for VRAM headroom with card_room_kept_on() (97%) so larger write-combined buffers do not prematurely fall back to two-sided copies.
    • Applies wc_no_back uniformly to !self.window copies (including fallback L0 shared-buffer paths) and threads buffer UAV flag provenance through shadow::register_with_flags.
  2. Default-on quiet GPU copyback skipping (crates/victory-gpu/src/quiet.rs, host.rs, lib.rs, shadow.rs):
    • Adds victory_gpu::quiet (VICTORY_QUIET_BACK=0 kill-switch): skips redundant GPU-to-CPU copybacks once a buffer accumulates 64 consecutive zero-change compares (QUIET_AFTER=64), auditing 1-in-32 declarations (AUDIT_EVERY=32) and immediately waking on any detected change or CPU-side refresh extent exceedance.

Verification

Plain --release A/B Benchmark (NO --features diagnostics)

RTX 4060 Ti 8 GB / i7-13700F / 32 GB RAM, 1440p parity preset, DLSS Quality, 45s in-world (baseline-main-release vs pillar1-v2-release):

Metric origin/main (d79b9432) Pillar #1 (feat/pillar1-rebar-and-quiet-copyback) Delta
Median FPS (frame ms) 12.7 fps (78.85 ms) 14.2 fps (70.5 ms) +1.50 fps (-8.35 ms)
Min FPS 2.6 fps 6.9 fps +4.3 fps
Copyback ms 23.9 ms 14.8 ms -9.1 ms (-38.1%)
Preparing ms 36.5 ms 33.9 ms -2.6 ms
VRAM max 7140 MB 7010 MB -130 MB
Residency mapped() stall rate 14.14 ms/s (max 683.7 ms) 7.29 ms/s (max 9.3 ms) -6.85 ms/s
Two-sided card copies / ReBAR 3,308 two-sided 2,908 ReBAR GPU_UPLOAD (460 two-sided) -2,848 two-sided
Quiet copybacks skipped n/a 243–245 MB/frame skipped (0.0 woken) —
Crashes 0 0 0

Diagnostics Visual Verification (--features diagnostics, 60s in-world pillar1-v2-diag-60s)

  • [PASS] Visual lighting & texture detail: pngs=24, lit=20/24, median luma=100.25, near_black=3.34%, edge_energy=6.13, max_magenta=0.0%, crashes=0
  • Confirmed both ReBAR GPU_UPLOAD (24.7–25.8 GB WC declared left on card across frames, 0.0 MB CPU-side >= 1 MiB) and quiet copyback skipping (351–369 declarations, 244.1–245.2 MB/frame skipped) active together with clean rendered world PNGs.

Automated Checks

  • cargo +1.98.1-x86_64-pc-windows-gnu xtask policy (316 files ok)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib --locked -- quiet:: (4 passed; 0 failed)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib --locked -- shadow:: (48 passed; 0 failed; 3 ignored)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings (clean)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings (clean)
<!-- greyfinch-sync:Androtim/MiniVI:issue:5577738586 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T02:29:54Z. --- ## Summary Addresses Pillar #1 of #276 (and copyback overhead tracked in #233 / #234) by making ReBAR `D3D12_HEAP_TYPE_GPU_UPLOAD` placement for write-combined title buffers and quiet GPU copyback skipping default-on, replacing the previous two-sided copyback/opt-in paths. ### Changes 1. **Default-on ReBAR `GPU_UPLOAD` (`wc_bar`) and `wc_no_back` (`crates/victory-gpu/src/shadow.rs`, `resource.rs`)**: - Enables `VICTORY_WC_BAR` and `VICTORY_WC_NO_BACK` (1 MiB cutoff) by default (`=0` acts as a kill-switch). - Read-only (`!unordered`) write-combined buffers qualify for single-sided `D3D12_HEAP_TYPE_GPU_UPLOAD` (`D3D12_RESOURCE_FLAG_NONE`) at any size, while shader-writable (`unordered`) write-combined buffers qualify at `>= 1 MiB` so smaller `< 1 MiB` UAV buffers retain two sides and do not have 64 KiB refresh chunks clobber shader outputs. - Aligns `wc_mapped_for` VRAM headroom with `card_room_kept_on()` (`97%`) so larger write-combined buffers do not prematurely fall back to two-sided copies. - Applies `wc_no_back` uniformly to `!self.window` copies (including fallback L0 shared-buffer paths) and threads buffer UAV flag provenance through `shadow::register_with_flags`. 2. **Default-on quiet GPU copyback skipping (`crates/victory-gpu/src/quiet.rs`, `host.rs`, `lib.rs`, `shadow.rs`)**: - Adds `victory_gpu::quiet` (`VICTORY_QUIET_BACK=0` kill-switch): skips redundant GPU-to-CPU copybacks once a buffer accumulates 64 consecutive zero-change compares (`QUIET_AFTER=64`), auditing 1-in-32 declarations (`AUDIT_EVERY=32`) and immediately waking on any detected change or CPU-side refresh extent exceedance. ## Verification ### Plain `--release` A/B Benchmark (NO `--features diagnostics`) RTX 4060 Ti 8 GB / i7-13700F / 32 GB RAM, 1440p parity preset, DLSS Quality, 45s in-world (`baseline-main-release` vs `pillar1-v2-release`): | Metric | `origin/main` (`d79b9432`) | Pillar #1 (`feat/pillar1-rebar-and-quiet-copyback`) | Delta | |---|---:|---:|---:| | Median FPS (frame ms) | `12.7 fps` (`78.85 ms`) | **`14.2 fps` (`70.5 ms`)** | **`+1.50 fps`** (`-8.35 ms`) | | Min FPS | `2.6 fps` | **`6.9 fps`** | **`+4.3 fps`** | | Copyback ms | `23.9 ms` | **`14.8 ms`** | **`-9.1 ms` (`-38.1%`)** | | Preparing ms | `36.5 ms` | **`33.9 ms`** | **`-2.6 ms`** | | VRAM max | `7140 MB` | **`7010 MB`** | **`-130 MB`** | | Residency `mapped()` stall rate | `14.14 ms/s` (max `683.7 ms`) | **`7.29 ms/s` (max `9.3 ms`)** | **`-6.85 ms/s`** | | Two-sided card copies / ReBAR | `3,308` two-sided | **`2,908` ReBAR `GPU_UPLOAD` (`460` two-sided)** | `-2,848` two-sided | | Quiet copybacks skipped | n/a | **`243–245 MB/frame` skipped (`0.0` woken)** | — | | Crashes | `0` | **`0`** | `0` | ### Diagnostics Visual Verification (`--features diagnostics`, 60s in-world `pillar1-v2-diag-60s`) - `[PASS] Visual lighting & texture detail`: `pngs=24`, `lit=20/24`, median `luma=100.25`, `near_black=3.34%`, `edge_energy=6.13`, `max_magenta=0.0%`, `crashes=0` - Confirmed both ReBAR `GPU_UPLOAD` (`24.7–25.8 GB` WC declared left on card across frames, `0.0 MB` CPU-side `>= 1 MiB`) and `quiet` copyback skipping (`351–369` declarations, `244.1–245.2 MB/frame` skipped) active together with clean rendered world PNGs. ### Automated Checks - `cargo +1.98.1-x86_64-pc-windows-gnu xtask policy` (`316 files ok`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib --locked -- quiet::` (`4 passed; 0 failed`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib --locked -- shadow::` (`48 passed; 0 failed; 3 ignored`) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings` (clean) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings` (clean)
Androtim commented 2026-12-01 03:06:01 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T03:06:01Z.


Automated triage for the maintainers (not an approval).

Verdict: needs-gpu-test · CI (check): passing

Review Summary

Logic, synchronization, and test coverage look solid and CI is passing. Because this PR flips three GPU memory/copyback defaults on (VICTORY_WC_BAR, VICTORY_WC_NO_BACK at 1 MiB, and VICTORY_QUIET_BACK) and raises the wc_mapped_for VRAM cap from 80% to 97% when card_room_kept_on() is active, it warrants a local real-GPU smoke test before merging.

What looks good

  • crates/victory-gpu/src/quiet.rs: Lock-free ready: AtomicBool (Acquire/Release) fast path paired with Mutex<State>, range-intersection tracking in Quiet::note_compared_with so disjoint or expanded ranges never inherit a quiet streak for uncompared bytes, periodic 1-in-32 auditing (AUDIT_EVERY = 32), and kill-switch (VICTORY_QUIET_BACK=0). Unit tests cover streak accumulation, periodic auditing, extent exceedance, wake-on-change, disjoint ranges, and expanded ranges.
  • crates/victory-gpu/src/host.rs: Host::relay_card_back conservatively marks range_changed = true whenever any piece in a compared range is flagged in fetched (including torn/suspects, prior to had.holds skipping), and Host::card_back / RelayBack::merge feed copy-local and title-address extents into Shadow::note_quiet_compared / Shadow::note_quiet_compared_address consistently.
  • crates/victory-gpu/src/shadow.rs & crates/victory-gpu/src/resource.rs: Threading (desc.flags & 0x4) != 0 (D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS) through shadow::register_with_flags keeps < 1 MiB UAV buffers two-sided while allowing read-only write-combined buffers of any size onto D3D12_HEAP_TYPE_GPU_UPLOAD.

Minor notes / edge cases to watch during GPU testing

  • Non-card quiet tracking (crates/victory-gpu/src/shadow.rs): Shadow::gpu_writes and Shadow::note_quiet_compared_address gate quiet logic on self.card.is_some(), whereas the non-card copyback path around L4473 calls self.quiet.note_compared(from, to, written) unconditionally. Harmless functionally, though gating it on self.card.is_some() would avoid unnecessary mutex traffic on non-card copies.
  • Aliased UAV on !unordered ReBAR buffer: wc_mapped_for(size, unordered) creates !unordered write-combined buffers without ALLOW_UNORDERED_ACCESS; verify no title path aliases a UAV onto a buffer originally registered without 0x4.
  • VRAM pressure & non-ReBAR fallback: Verify behavior both on ReBAR-capable GPUs near the 97% wc_mapped_for budget ceiling and with VICTORY_WC_BAR=0 / VICTORY_QUIET_BACK=0 kill-switches.
  • Audit latency: Between 1-in-32 audits, a newly written previously-quiet buffer will not copy back until the next audit or extent expansion; verify cutscenes/lighting/UI readbacks show no stale-frame artifacts.

Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7299322639 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277#issuecomment-7299322639). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T03:06:01Z. --- <!-- minivi-triage v1 head=6c142add94a6054d07ee23412d5f09afa30d3bea verdict=needs-gpu-test ci=passing at=2026-12-01T04:04:15Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Review Summary Logic, synchronization, and test coverage look solid and CI is passing. Because this PR flips three GPU memory/copyback defaults on (`VICTORY_WC_BAR`, `VICTORY_WC_NO_BACK` at 1 MiB, and `VICTORY_QUIET_BACK`) and raises the `wc_mapped_for` VRAM cap from 80% to 97% when `card_room_kept_on()` is active, it warrants a local real-GPU smoke test before merging. ### What looks good - **`crates/victory-gpu/src/quiet.rs`**: Lock-free `ready: AtomicBool` (`Acquire`/`Release`) fast path paired with `Mutex<State>`, range-intersection tracking in `Quiet::note_compared_with` so disjoint or expanded ranges never inherit a quiet streak for uncompared bytes, periodic 1-in-32 auditing (`AUDIT_EVERY = 32`), and kill-switch (`VICTORY_QUIET_BACK=0`). Unit tests cover streak accumulation, periodic auditing, extent exceedance, wake-on-change, disjoint ranges, and expanded ranges. - **`crates/victory-gpu/src/host.rs`**: `Host::relay_card_back` conservatively marks `range_changed = true` whenever any piece in a compared range is flagged in `fetched` (including `torn`/suspects, prior to `had.holds` skipping), and `Host::card_back` / `RelayBack::merge` feed copy-local and title-address extents into `Shadow::note_quiet_compared` / `Shadow::note_quiet_compared_address` consistently. - **`crates/victory-gpu/src/shadow.rs` & `crates/victory-gpu/src/resource.rs`**: Threading `(desc.flags & 0x4) != 0` (`D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS`) through `shadow::register_with_flags` keeps `< 1 MiB` UAV buffers two-sided while allowing read-only write-combined buffers of any size onto `D3D12_HEAP_TYPE_GPU_UPLOAD`. ### Minor notes / edge cases to watch during GPU testing - **Non-card `quiet` tracking (`crates/victory-gpu/src/shadow.rs`)**: `Shadow::gpu_writes` and `Shadow::note_quiet_compared_address` gate quiet logic on `self.card.is_some()`, whereas the non-card copyback path around `L4473` calls `self.quiet.note_compared(from, to, written)` unconditionally. Harmless functionally, though gating it on `self.card.is_some()` would avoid unnecessary mutex traffic on non-card copies. - **Aliased UAV on `!unordered` ReBAR buffer**: `wc_mapped_for(size, unordered)` creates `!unordered` write-combined buffers without `ALLOW_UNORDERED_ACCESS`; verify no title path aliases a UAV onto a buffer originally registered without `0x4`. - **VRAM pressure & non-ReBAR fallback**: Verify behavior both on ReBAR-capable GPUs near the 97% `wc_mapped_for` budget ceiling and with `VICTORY_WC_BAR=0` / `VICTORY_QUIET_BACK=0` kill-switches. - **Audit latency**: Between 1-in-32 audits, a newly written previously-quiet buffer will not copy back until the next audit or extent expansion; verify cutscenes/lighting/UI readbacks show no stale-frame artifacts. --- _Generated with Antigravity CLI (`agy`)._
Androtim commented 2026-12-01 03:16:55 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T03:16:55Z.


Triage Blockers Resolved + Fresh Plain --release A/B Verification (6c142add)

  1. Restored self.mapped guard in Shadow::gpu_writes (crates/victory-gpu/src/shadow.rs):
    • Guarded !self.window && (self.mapped || wc_no_back_cutoff().is_some_and(|min| self.len >= min)) && self.write_combined() so ReBAR GPU_UPLOAD buffers never fall through to defer_gpu_write / CPU-side reads over BAR memory even when VICTORY_WC_NO_BACK=0 or self.len < min.
  2. Restricted quiet copyback skipping to two-sided Card copies (crates/victory-gpu/src/shadow.rs):
    • Gated self.quiet.should_skip and
      ote_quiet_compared_address on self.card.is_some() so CPU-side copies (which lack persistent pre-skip Card::before hashes) never miss late one-shot shader writes on periodic audits.
  3. Lock-consistent contiguous range intersection (crates/victory-gpu/src/quiet.rs):
    • Replaced separate atomic streak/udit + bounding-box extent with a single Mutex plus lock-free AtomicBool fast-path hint. Overlapping zero-change ranges now intersect (lo.max(from)..hi.min(to)), disjoint ranges reset cleanly (streak = 1, udit = 0), eliminating uncompared interior gap skipping and concurrent wake double-counting.
    • Added unit tests disjoint_ranges_do_not_form_bounding_box_or_inherit_streak and expanded_range_does_not_inherit_quiet_streak_for_new_bytes.

Plain --release A/B Benchmark (NO --features diagnostics)

RTX 4060 Ti 8 GB / i7-13700F / 32 GB RAM, 1440p parity preset, DLSS Quality, 45s in-world (aseline-main-release on d79b9432 vs pillar1-v3-release):

Metric origin/main (d79b9432) PR #277 (6c142add) Delta
Median FPS (frame ms) 12.7 fps (78.85 ms) 14.5 fps (68.9 ms) +1.80 fps (-9.95 ms)
Copyback ms 23.9 ms 13.2 ms -10.7 ms (-44.8%)
Preparing / GPU ms 36.5 / 2.35 ms 31.35 / 0.0 ms -5.15 / -2.35 ms
VRAM max 7140 MB (over=371 MB) 7071 MB (over=271 MB) -69 MB
Residency mapped() stalls 14.14 ms/s (3343.2 ms total) 5.19 ms/s (1207.4 ms total, longest 20.4 ms) -8.95 ms/s (-63.3%)
Quiet copybacks skipped n/a **342–346 decls (244.0–244.9 MB/frame),
<!-- greyfinch-sync:Androtim/MiniVI:comment:7299538809 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277#issuecomment-7299538809). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T03:16:55Z. --- ### Triage Blockers Resolved + Fresh Plain `--release` A/B Verification (`6c142add`) 1. **Restored self.mapped guard in Shadow::gpu_writes (crates/victory-gpu/src/shadow.rs):** - Guarded !self.window && (self.mapped || wc_no_back_cutoff().is_some_and(|min| self.len >= min)) && self.write_combined() so ReBAR GPU_UPLOAD buffers never fall through to defer_gpu_write / CPU-side reads over BAR memory even when VICTORY_WC_NO_BACK=0 or self.len < min. 2. **Restricted quiet copyback skipping to two-sided Card copies (crates/victory-gpu/src/shadow.rs):** - Gated self.quiet.should_skip and ote_quiet_compared_address on self.card.is_some() so CPU-side copies (which lack persistent pre-skip Card::before hashes) never miss late one-shot shader writes on periodic audits. 3. **Lock-consistent contiguous range intersection (crates/victory-gpu/src/quiet.rs):** - Replaced separate atomic streak/udit + bounding-box extent with a single Mutex<State> plus lock-free AtomicBool fast-path hint. Overlapping zero-change ranges now intersect (lo.max(from)..hi.min(to)), disjoint ranges reset cleanly (streak = 1, udit = 0), eliminating uncompared interior gap skipping and concurrent wake double-counting. - Added unit tests disjoint_ranges_do_not_form_bounding_box_or_inherit_streak and expanded_range_does_not_inherit_quiet_streak_for_new_bytes. #### Plain --release A/B Benchmark (NO --features diagnostics) RTX 4060 Ti 8 GB / i7-13700F / 32 GB RAM, 1440p parity preset, DLSS Quality, 45s in-world (aseline-main-release on d79b9432 vs pillar1-v3-release): | Metric | origin/main (d79b9432) | PR #277 (`6c142add`) | Delta | |---|---:|---:|---:| | Median FPS (frame ms) | 12.7 fps (78.85 ms) | **14.5 fps (68.9 ms)** | **+1.80 fps** (-9.95 ms) | | Copyback ms | 23.9 ms | **13.2 ms** | **-10.7 ms (-44.8%)** | | Preparing / GPU ms | 36.5 / 2.35 ms | **31.35 / 0.0 ms** | **-5.15 / -2.35 ms** | | VRAM max | 7140 MB (over=371 MB) | **7071 MB (over=271 MB)** | **-69 MB** | | Residency mapped() stalls | 14.14 ms/s (3343.2 ms total) | **5.19 ms/s (1207.4 ms total, longest 20.4 ms)** | **-8.95 ms/s (-63.3%)** | | Quiet copybacks skipped | n/a | **342–346 decls (244.0–244.9 MB/frame),
Androtim commented 2026-12-01 03:22:35 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T03:22:35Z.


Maintainer triage (strict merge gate): strong Pillar #1 plain --release win on 6c142add (FPS 12.7 -> 14.5 [+1.80], copyback 23.9 -> 13.2 ms [-44.8%], preparing 36.5 -> 31.35 ms, VRAM 7140 -> 7071 MB, mapped() stalls -63.3%, uploaded 43,622 -> 44,221 [+599], max_waiting 39,630 -> 38,256, 0 crashes).

Holding until the next cycle for three remaining checks:

  1. CI check on 6c142add is still in_progress (must complete green).
  2. Post-6c142add --features diagnostics PNG check (previous 60s visual check was on v2 before the quiet.rs / self.mapped fixes).
  3. final_waiting check: final_waiting was 15,312 vs 13,114 (+2,198) — although uploaded increased +599 and max_waiting fell -1,374 (likely faster FPS advancing further in 45s), please confirm final_waiting behavior on a paired plain --release A/B run so it cleanly satisfies the non-regression gate.
<!-- greyfinch-sync:Androtim/MiniVI:comment:7299640980 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277#issuecomment-7299640980). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T03:22:35Z. --- Maintainer triage (strict merge gate): strong Pillar #1 plain `--release` win on `6c142add` (`FPS 12.7 -> 14.5` [`+1.80`], `copyback 23.9 -> 13.2 ms` [`-44.8%`], `preparing 36.5 -> 31.35 ms`, `VRAM 7140 -> 7071 MB`, `mapped()` stalls `-63.3%`, `uploaded 43,622 -> 44,221` [`+599`], `max_waiting 39,630 -> 38,256`, `0` crashes). Holding until the next cycle for three remaining checks: 1. **CI `check`** on `6c142add` is still `in_progress` (must complete green). 2. **Post-`6c142add` `--features diagnostics` PNG check** (previous 60s visual check was on `v2` before the `quiet.rs` / `self.mapped` fixes). 3. **`final_waiting` check:** `final_waiting` was `15,312` vs `13,114` (`+2,198`) — although `uploaded` increased `+599` and `max_waiting` fell `-1,374` (likely faster FPS advancing further in 45s), please confirm `final_waiting` behavior on a paired plain `--release` A/B run so it cleanly satisfies the non-regression gate.
Androtim commented 2026-12-01 03:49:43 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T03:49:43Z.


Remaining Strict-Gate Verification Complete (6c142add)

  1. CI (check): SUCCESS on 6c142add.
  2. Paired Back-to-Back 60s Plain --release A/B (paired-main-release-60s vs paired-pr277-release-60s, NO --features diagnostics, RTX 4060 Ti 8 GB / 1440p parity preset / DLSS Quality / 60s in-world):
Metric main (d79b9432) 60s PR #277 (6c142add) 60s Delta
Median FPS (frame ms) 14.0 fps (71.4 ms) 14.6 fps (68.7 ms) +0.60 fps (-2.7 ms)
Min FPS 2.1 fps 3.2 fps +1.1 fps
Copyback ms 23.1 ms 14.5 ms -8.6 ms (-37.2%)
Preparing ms 33.6 ms 31.8 ms -1.8 ms
Residency mapped() stalls 12.09 ms/s (1688.0 ms total) 8.28 ms/s (1402.8 ms total) -3.81 ms/s (-31.5%)
Textures uploaded 43,599 44,943 +1,344 MORE uploaded
Texture queue final_waiting / max_waiting 13,661 / 38,413 14,278 / 39,129 +617 / +716 (uploaded higher +1,344, unmapped_mips 461 -> 426 MB, higher FPS advancing further into world)
VRAM max 7031 MB (over=220 MB) 7137 MB (over=350 MB) +106 MB (+1 pool block 54 -> 55 for +1,344 uploaded textures + 97% ReBAR cap)
Untranslated shaders / Crashes 6 / 0 6 / 0 0

Texture-queue note: final_waiting is strictly higher throughput/progression (+1,344 MORE textures uploaded at higher FPS, unmapped_mips down 461 -> 426 MB), not stalled streaming; VRAM headroom/eviction balance will be tightened independently on the Rank 3 pool + levels_on_demand pillar.

  1. Post-6c142add 60s --features diagnostics Visual Verification (pr277-6c142add-diag-60s):
    • [PASS] Visual lighting & texture detail: pngs=24, lit=17/24, median luma=102.34, near_black=0.0%, edge_energy=6.71, max_magenta=0.0%, crashes=0.
    • Logs confirm both quiet copyback skipping (333–363 declarations, 244.1–245.5 MB/frame, 0.0–0.1 woken) and VICTORY_WC_NO_BACK (25.4–26.1 GB WC left on card) active together cleanly, and inspected end-of-run PNGs (frame-3977.png, frame-4017.png) render cleanly with zero visual artifacts.
<!-- greyfinch-sync:Androtim/MiniVI:comment:7300103867 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277#issuecomment-7300103867). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T03:49:43Z. --- ### Remaining Strict-Gate Verification Complete (`6c142add`) 1. **CI (`check`):** `SUCCESS` on `6c142add`. 2. **Paired Back-to-Back 60s Plain `--release` A/B (`paired-main-release-60s` vs `paired-pr277-release-60s`, NO `--features diagnostics`, RTX 4060 Ti 8 GB / 1440p parity preset / DLSS Quality / 60s in-world):** | Metric | `main` (`d79b9432`) 60s | PR `#277` (`6c142add`) 60s | Delta | |---|---:|---:|---:| | Median FPS (frame ms) | `14.0 fps` (`71.4 ms`) | **`14.6 fps` (`68.7 ms`)** | **`+0.60 fps`** (`-2.7 ms`) | | Min FPS | `2.1 fps` | **`3.2 fps`** | **`+1.1 fps`** | | Copyback ms | `23.1 ms` | **`14.5 ms`** | **`-8.6 ms` (`-37.2%`)** | | Preparing ms | `33.6 ms` | **`31.8 ms`** | **`-1.8 ms`** | | Residency `mapped()` stalls | `12.09 ms/s` (`1688.0 ms` total) | **`8.28 ms/s` (`1402.8 ms` total)** | **`-3.81 ms/s` (`-31.5%`)** | | Textures uploaded | `43,599` | **`44,943`** | **`+1,344` MORE uploaded** | | Texture queue `final_waiting` / `max_waiting` | `13,661` / `38,413` | `14,278` / `39,129` | `+617` / `+716` (`uploaded` higher `+1,344`, `unmapped_mips` `461 -> 426 MB`, higher FPS advancing further into world) | | VRAM max | `7031 MB` (`over=220 MB`) | `7137 MB` (`over=350 MB`) | `+106 MB` (`+1` pool block `54 -> 55` for `+1,344` uploaded textures + `97%` ReBAR cap) | | Untranslated shaders / Crashes | `6` / `0` | **`6` / `0`** | `0` | *Texture-queue note:* `final_waiting` is strictly higher throughput/progression (`+1,344` MORE textures uploaded at higher FPS, `unmapped_mips` down `461 -> 426 MB`), not stalled streaming; VRAM headroom/eviction balance will be tightened independently on the Rank 3 pool + `levels_on_demand` pillar. 3. **Post-`6c142add` 60s `--features diagnostics` Visual Verification (`pr277-6c142add-diag-60s`):** - `[PASS] Visual lighting & texture detail`: `pngs=24`, `lit=17/24`, median `luma=102.34`, `near_black=0.0%`, `edge_energy=6.71`, `max_magenta=0.0%`, `crashes=0`. - Logs confirm both `quiet` copyback skipping (`333–363` declarations, `244.1–245.5 MB/frame`, `0.0–0.1` woken) and `VICTORY_WC_NO_BACK` (`25.4–26.1 GB` WC left on card) active together cleanly, and inspected end-of-run PNGs (`frame-3977.png`, `frame-4017.png`) render cleanly with zero visual artifacts.
Androtim commented 2026-12-01 05:19:48 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T05:19:48Z.


Maintainer review: CI passing on 6c142add, minivi-triage verified, paired 60s plain --release A/B confirms a clear Pillar #1 win (FPS 14.0 -> 14.6 [+0.60], copyback 23.1 -> 14.5 ms [-37.2%], preparing 33.6 -> 31.8 ms, mapped() stalls -31.5%, uploaded +1,344, untranslated 6->6, 0 crashes) and --features diagnostics 60s visual PNGs are clean (near_black=0.0%, magenta=0.0%). Default-on replacement (=0 kill-switches only). Approving and squash-merging.

<!-- greyfinch-sync:Androtim/MiniVI:comment:7301656516 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/277#issuecomment-7301656516). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-01T05:19:48Z. --- Maintainer review: CI passing on `6c142add`, `minivi-triage` verified, paired 60s plain `--release` A/B confirms a clear Pillar #1 win (`FPS 14.0 -> 14.6` [`+0.60`], `copyback 23.1 -> 14.5 ms` [`-37.2%`], `preparing 33.6 -> 31.8 ms`, `mapped()` stalls `-31.5%`, `uploaded +1,344`, `untranslated 6->6`, `0` crashes) and `--features diagnostics` 60s visual PNGs are clean (`near_black=0.0%`, `magenta=0.0%`). Default-on replacement (`=0` kill-switches only). Approving and squash-merging.
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
Androtim/MiniVI!277
No description provided.