perf(gpu/pool,tiles): adapter-aware 4 KiB pool packing, reactive spares, and budget-bounded tiled fallback #281

Manually merged
github merged 2 commits from gh-pr/281/head into gh-pr/281/base 2026-12-01 20:25:36 +00:00
Owner

@⁠Androtim on GitHub · 2026-12-01 09:40 UTC · original
Androtim:perf/pillar3-adapter-pool-small-and-tiled-vram → main · +175 −55 · 7 files · 2 commits · merged 2026-12-01 11:19 UTC

Summary

Pillar #3 structural VRAM efficiency & headroom-reactive pooling improvements, rebased onto eb9dc68d (main):

  1. Adapter-aware 4 KiB small-texture pool packing (crates/victory-gpu/src/pool.rs, launcher/script defaults):
    • Enable D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT (4 KiB) by default on non-AMD GPUs (VICTORY_POOL_SMALL=0 kill-switch) while keeping 64 KiB alignment by default on AMD drivers where 4 KiB placed textures have caused GPU page faults (VICTORY_POOL_SMALL=1 overrides).
    • Remove hardcoded VICTORY_POOL_SMALL=0 overrides from apps/victory/src/play.rs, scripts/verify-world.ps1, and scripts/play-minivi.ps1.
  2. Dynamic headroom-reactive empty pool spares (crates/victory-gpu/src/pool.rs):
    • Scale empty pool spare blocks dynamically from live DXGI budget - used headroom ((headroom / 4) / 64 MiB clamped to [2, 64] blocks, dropping to 0 below 512 MiB free headroom or >= 90% budget) so 8 GiB GPUs shed excess empty blocks early while 16-24+ GiB GPUs retain warm spare capacity.
  3. Budget-bounded complementary tiled mip-on-demand fallback (crates/victory-gpu/src/tiles.rs, crates/victory-gpu/src/resource.rs):
    • Expose tiles::free_room() (heaps - given) and credit it alongside pool::texture_room() in resource::room(), resource::weighed(), and resource::room_terms().
    • Make unheld mip reclamation default-on (VICTORY_LEVELS_RECLAIM=0 kill-switch) when levels-on-demand is active.
    • Gate new tiled-pool heap growth on resource::block_room(...) for texture uploads (must_grow = false) while preserving guaranteed growth for GPU card writes (must_grow = true).
    • Keep VICTORY_HELD_LEVELS active for non-tiled textures even when levels_on_demand is enabled.
  4. Verifier healthy-VRAM telemetry (scripts/analyze-world-run.py):
    • Parse "the texture queue's room: <used> MB in use ... of a budget of <budget> MB): room|no room" as fallback in-world accounting when room remains true and detailed no-room card accounting: dumps are not triggered.

Paired Plain --release 60s -PlayParity A/B (series-x, 1440p DLSS Quality, NO --features diagnostics, RTX 4060 Ti 8 GB / i7-13700F)

Metric main (eb9dc68d) Pillar #3 (f0f8afa8) Delta
Median FPS 16.5 fps (60.6 ms) 16.2 fps (61.7 ms) -0.3 fps (+1.1 ms)
Min FPS 2.9 fps 7.5 fps +4.6 fps
Preparing 30.9 ms 31.7 ms +0.8 ms (streaming 1.9x textures)
Copyback 12.5 ms 11.8 ms -0.7 ms
VRAM max / budget 6,803 / 6,727 MB 6,086 / 6,660 MB -717 MB (574 MB under budget)
Over budget 64 MB 0 MB -64 MB (PASS)
room=false ratio 100.0% (no_room=42,500) 0.0% (no_room=0) -100.0 pp (PASS)
Pool blocks (free) 46 (2,944 MB, 447 MB free) 34 (2,176 MB, 252 MB free) -12 blocks (-768 MB)
Uploaded textures 38,715 73,370 +34,655 (+89.5%)
final_waiting textures 15,134 1,064 -14,070 (-93.0%, PASS)
mapped() rate (longest) 4.45 ms/s (47.0 ms) 5.08 ms/s (17.6 ms) +0.63 ms/s (-62.5% peak stall)
Crashes / errors 0 (untranslated=6) 0 (untranslated=6) Clean

(Note: on ff6e5925 before #278, this branch also gained +1.9 fps (13.9 -> 15.8 fps), -803 MB VRAM, and room_false=0.0%; an isolated A/B with VICTORY_LEVELS_ON_DEMAND=1 vs default 0 confirmed keeping levels_on_demand=0 by default yields higher FPS (15.8 vs 14.35 fps) and lower VRAM (6,030 vs 6,243 MB) on 8 GiB cards alongside 4 KiB pool packing.)

90s --features diagnostics Visual & Alignment Verification

  • Zero 4 KiB placement boundary faults: where_the_card_reads reported 0 past the end of the piece errors across 64,290 uploaded textures (on=true amd=false).
  • Visual & stability check: 0 crashes, 0 no host texture errors, 6,211 / 6,731 MB (over=0 MB), lit=24/24, luma=60.93, near_black=0.02%, magenta=0.0%; inspected both outdoor shoreline/architecture and interior lighting PNGs directly confirming crisp full-resolution textures and clean lighting.

Checks

  • cargo +1.98.1-x86_64-pc-windows-gnu xtask policy (317 files ok)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked pool:: (19 passed, 1 ignored)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked tiles:: -- --test-threads=1 (10 passed, 1 ignored)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked resource:: -- --test-threads=1 (34 passed)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory --locked play:: (16 passed)
  • Dual clippy --workspace --all-targets --locked -- -D warnings (default + --features diagnostics)
  • Not self-merged (PR check and merges handles merges).
**@⁠Androtim** on GitHub · 2026-12-01 09:40 UTC · [original](https://github.com/Androtim/MiniVI/pull/281) `Androtim:perf/pillar3-adapter-pool-small-and-tiled-vram` → `main` · +175 −55 · 7 files · 2 commits · merged 2026-12-01 11:19 UTC ## Summary Pillar #3 structural VRAM efficiency & headroom-reactive pooling improvements, rebased onto `eb9dc68d` (`main`): 1. **Adapter-aware 4 KiB small-texture pool packing (`crates/victory-gpu/src/pool.rs`, launcher/script defaults):** - Enable `D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT` (4 KiB) by default on non-AMD GPUs (`VICTORY_POOL_SMALL=0` kill-switch) while keeping 64 KiB alignment by default on AMD drivers where 4 KiB placed textures have caused GPU page faults (`VICTORY_POOL_SMALL=1` overrides). - Remove hardcoded `VICTORY_POOL_SMALL=0` overrides from `apps/victory/src/play.rs`, `scripts/verify-world.ps1`, and `scripts/play-minivi.ps1`. 2. **Dynamic headroom-reactive empty pool spares (`crates/victory-gpu/src/pool.rs`):** - Scale empty pool spare blocks dynamically from live DXGI `budget - used` headroom (`(headroom / 4) / 64 MiB` clamped to `[2, 64]` blocks, dropping to `0` below `512 MiB` free headroom or `>= 90%` budget) so 8 GiB GPUs shed excess empty blocks early while 16-24+ GiB GPUs retain warm spare capacity. 3. **Budget-bounded complementary tiled mip-on-demand fallback (`crates/victory-gpu/src/tiles.rs`, `crates/victory-gpu/src/resource.rs`):** - Expose `tiles::free_room()` (`heaps - given`) and credit it alongside `pool::texture_room()` in `resource::room()`, `resource::weighed()`, and `resource::room_terms()`. - Make unheld mip reclamation default-on (`VICTORY_LEVELS_RECLAIM=0` kill-switch) when levels-on-demand is active. - Gate new tiled-pool heap growth on `resource::block_room(...)` for texture uploads (`must_grow = false`) while preserving guaranteed growth for GPU card writes (`must_grow = true`). - Keep `VICTORY_HELD_LEVELS` active for non-tiled textures even when `levels_on_demand` is enabled. 4. **Verifier healthy-VRAM telemetry (`scripts/analyze-world-run.py`):** - Parse `"the texture queue's room: <used> MB in use ... of a budget of <budget> MB): room|no room"` as fallback in-world accounting when `room` remains `true` and detailed no-room `card accounting:` dumps are not triggered. ## Paired Plain `--release` 60s `-PlayParity` A/B (`series-x`, 1440p DLSS Quality, NO `--features diagnostics`, RTX 4060 Ti 8 GB / i7-13700F) | Metric | `main` (`eb9dc68d`) | Pillar #3 (`f0f8afa8`) | Delta | |---|---:|---:|---| | Median FPS | `16.5 fps` (`60.6 ms`) | `16.2 fps` (`61.7 ms`) | `-0.3 fps` (`+1.1 ms`) | | Min FPS | `2.9 fps` | **`7.5 fps`** | **`+4.6 fps`** | | Preparing | `30.9 ms` | `31.7 ms` | `+0.8 ms` (streaming `1.9x` textures) | | Copyback | `12.5 ms` | **`11.8 ms`** | **`-0.7 ms`** | | VRAM max / budget | `6,803 / 6,727 MB` | **`6,086 / 6,660 MB`** | **`-717 MB` (`574 MB` under budget)** | | Over budget | `64 MB` | **`0 MB`** | **`-64 MB` (PASS)** | | `room=false` ratio | `100.0%` (`no_room=42,500`) | **`0.0%` (`no_room=0`)** | **`-100.0 pp` (PASS)** | | Pool blocks (free) | `46` (`2,944 MB`, `447 MB` free) | **`34` (`2,176 MB`, `252 MB` free)** | **`-12` blocks (`-768 MB`)** | | Uploaded textures | `38,715` | **`73,370`** | **`+34,655` (`+89.5%`)** | | `final_waiting` textures | `15,134` | **`1,064`** | **`-14,070` (`-93.0%`, PASS)** | | `mapped()` rate (longest) | `4.45 ms/s` (`47.0 ms`) | `5.08 ms/s` (**`17.6 ms`**) | `+0.63 ms/s` (**`-62.5%` peak stall**) | | Crashes / errors | `0` (`untranslated=6`) | `0` (`untranslated=6`) | Clean | *(Note: on `ff6e5925` before `#278`, this branch also gained `+1.9 fps` (`13.9 -> 15.8 fps`), `-803 MB` VRAM, and `room_false=0.0%`; an isolated A/B with `VICTORY_LEVELS_ON_DEMAND=1` vs default `0` confirmed keeping `levels_on_demand=0` by default yields higher FPS (`15.8` vs `14.35 fps`) and lower VRAM (`6,030` vs `6,243 MB`) on 8 GiB cards alongside 4 KiB pool packing.)* ## 90s `--features diagnostics` Visual & Alignment Verification - **Zero 4 KiB placement boundary faults:** `where_the_card_reads` reported **`0`** `past the end of the piece` errors across `64,290` uploaded textures (`on=true amd=false`). - **Visual & stability check:** `0` crashes, `0` `no host texture` errors, `6,211 / 6,731 MB` (`over=0 MB`), `lit=24/24`, `luma=60.93`, `near_black=0.02%`, `magenta=0.0%`; inspected both outdoor shoreline/architecture and interior lighting PNGs directly confirming crisp full-resolution textures and clean lighting. ## Checks - `cargo +1.98.1-x86_64-pc-windows-gnu xtask policy` (`317 files ok`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked pool::` (`19 passed, 1 ignored`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked tiles:: -- --test-threads=1` (`10 passed, 1 ignored`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked resource:: -- --test-threads=1` (`34 passed`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory --locked play::` (`16 passed`) - Dual `clippy --workspace --all-targets --locked -- -D warnings` (default + `--features diagnostics`) - **Not self-merged** (`PR check and merges` handles merges).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:25:34 +00:00
github manually merged commit b7cf2f16b3 into gh-pr/281/base 2026-12-01 20:25:36 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 10:03 UTC · original · edited 2026-12-01 11:03 UTC

Automated triage for the maintainers (not an approval).

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

Review Summary

Logic, safety, and unit tests look solid, and CI is passing. Because this PR changes D3D12 placed-texture alignment defaults, launcher/script defaults, VRAM budget accounting, and pool spare retention, it should get a local real-GPU smoke test before merging.

What was checked

  • Adapter-aware 4 KiB small-texture packing (crates/victory-gpu/src/pool.rs, apps/victory/src/play.rs, scripts/play-minivi.ps1, scripts/verify-world.ps1): small_placement_for defaults to true on non-AMD GPUs and false on AMD via crate::indirect::amd(device), while honoring explicit VICTORY_POOL_SMALL=0|1 overrides and ab::pick under diagnostics. Removing the hardcoded VICTORY_POOL_SMALL=0 entries from play.rs and the helper scripts lets the adapter-aware default take effect.
  • Headroom-reactive spare blocks (crates/victory-gpu/src/pool.rs): spares() drops to 0 at >= 90% budget or < 512 MiB free headroom (or under pressure), and scales ((headroom / 4) / BLOCK).clamp(SPARE, SPARE_KEPT) below 85% when keep is true. Arithmetic uses saturating_sub and u128 comparisons, avoiding underflow/overflow. (Minor doc nit: the doc comment above pool::room() still describes the old static SPARE_KEPT rule.)
  • Budget-bounded tiled fallback & room accounting (crates/victory-gpu/src/resource.rs, crates/victory-gpu/src/tiles.rs):
    • Splitting resource::has_block_room() from resource::block_room() lets Tiled::give_locked gate non-card-write tile heap growth without mutating pool::note_full.
    • Guarding the base calculation in resource::hosted with tiled.is_none() ensures VICTORY_HELD_LEVELS stays active for non-tiled textures without shifting host.base on tiled textures when VICTORY_LEVELS_ON_DEMAND=1.
    • Crediting tiles::free_room() (STATS[3].saturating_sub(STATS[2])) in resource::room(), weighed(), and room_terms() and defaulting tiles::reclaim() to on (VICTORY_LEVELS_RECLAIM=0 disables) are consistent with the existing pool accounting.
  • Run analyzer fallback (scripts/analyze-world-run.py): QUEUE_ROOM_RE cleanly falls back to "the texture queue's room: ..." lines when healthy runs never emit detailed no-room card accounting: dumps.

Verify on a real GPU (ideally both non-AMD and AMD if available) that 4 KiB placed-texture packing and the reactive spare/budget limits produce no device loss, placement boundary faults, or VRAM regressions.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-12-01 10:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/281#issuecomment-7307611079) · edited 2026-12-01 11:03 UTC <!-- minivi-triage v1 head=b7cf2f16b36599419bebbd19f1b4a1313d0c8ebb verdict=needs-gpu-test ci=passing at=2026-12-01T11:04:04Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Review Summary Logic, safety, and unit tests look solid, and CI is passing. Because this PR changes D3D12 placed-texture alignment defaults, launcher/script defaults, VRAM budget accounting, and pool spare retention, it should get a local real-GPU smoke test before merging. #### What was checked - **Adapter-aware 4 KiB small-texture packing (`crates/victory-gpu/src/pool.rs`, `apps/victory/src/play.rs`, `scripts/play-minivi.ps1`, `scripts/verify-world.ps1`):** `small_placement_for` defaults to `true` on non-AMD GPUs and `false` on AMD via `crate::indirect::amd(device)`, while honoring explicit `VICTORY_POOL_SMALL=0|1` overrides and `ab::pick` under `diagnostics`. Removing the hardcoded `VICTORY_POOL_SMALL=0` entries from `play.rs` and the helper scripts lets the adapter-aware default take effect. - **Headroom-reactive spare blocks (`crates/victory-gpu/src/pool.rs`):** `spares()` drops to `0` at `>= 90%` budget or `< 512 MiB` free headroom (or under pressure), and scales `((headroom / 4) / BLOCK).clamp(SPARE, SPARE_KEPT)` below `85%` when `keep` is true. Arithmetic uses `saturating_sub` and `u128` comparisons, avoiding underflow/overflow. *(Minor doc nit: the doc comment above `pool::room()` still describes the old static `SPARE_KEPT` rule.)* - **Budget-bounded tiled fallback & room accounting (`crates/victory-gpu/src/resource.rs`, `crates/victory-gpu/src/tiles.rs`):** - Splitting `resource::has_block_room()` from `resource::block_room()` lets `Tiled::give_locked` gate non-card-write tile heap growth without mutating `pool::note_full`. - Guarding the `base` calculation in `resource::hosted` with `tiled.is_none()` ensures `VICTORY_HELD_LEVELS` stays active for non-tiled textures without shifting `host.base` on tiled textures when `VICTORY_LEVELS_ON_DEMAND=1`. - Crediting `tiles::free_room()` (`STATS[3].saturating_sub(STATS[2])`) in `resource::room()`, `weighed()`, and `room_terms()` and defaulting `tiles::reclaim()` to on (`VICTORY_LEVELS_RECLAIM=0` disables) are consistent with the existing pool accounting. - **Run analyzer fallback (`scripts/analyze-world-run.py`):** `QUEUE_ROOM_RE` cleanly falls back to `"the texture queue's room: ..."` lines when healthy runs never emit detailed no-room `card accounting:` dumps. #### Local GPU verification recommended Verify on a real GPU (ideally both non-AMD and AMD if available) that 4 KiB placed-texture packing and the reactive spare/budget limits produce no device loss, placement boundary faults, or VRAM regressions. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 10:16 UTC · original

Addressed all four minivi-triage items in b7cf2f16:

  1. CI re-run (land::): Previous CI failure was in land::tests::landings_beside_the_title_and_its_refreshes_lose_nothing (␀xc0000005 under CI test runner, unrelated to pool.rs/ iles.rs/
    esource.rs); verified land:: passes locally (7 passed, 1 ignored with --test-threads=1) and pushed to re-run CI.
  2. Guaranteed heap growth for card-written tiled mips (crates/victory-gpu/src/tiles.rs): Replaced must_grow: bool with a per-level must_may: u32 bitmask in give_locked (uploaded_on passes card, card_wrote_on passes levels, guarded by level_may_grow) so card-written levels keep guaranteed heap creation even under !room, while held-only levels remain gated by has_block_room and still reuse existing free tile holes. Added unit test level_may_grow_guarantees_card_levels_and_gates_held_levels.
  3. Lock scope & pure room query (crates/victory-gpu/src/resource.rs, crates/victory-gpu/src/tiles.rs): Restored ake_inner(device, count, allow_new_heap) (no DXGI call inside POOL's mutex), extracted pure
    esource::has_block_room (no pool::note_full mutation from the tiled allocator), and evaluate it once in give_locked outside POOL only when held-only levels request growth.
  4. **
    esource::held_only() callers audited:**
    • exture.rs::upload_listed and upload_from already check
      esource::held_only() || crate::tiles::wanted().

esource.rs::want_level early-returns on host.base == 0, and hosted() keeps ase = 0 when iled.is_some().

  • draw.rs (shows_other) defers slot flips safely to post-upload when an earlier view exists.

esource.rs::placed_bytes_from scopes mapped-byte checks to the slot's viewed mip chain ( irst..tail) while Tiled::uploaded_on reads all mapped levels independently via held_levels_of.

The default plain --release path (VICTORY_LEVELS_ON_DEMAND=0) and pool.rs / play.rs behavior are unchanged from the verified 0f8afa8 A/B run (-717 MB VRAM, over=0 MB,
oom_false=0.0%, -93.0% inal_waiting). Local gates on b7cf2f16 passed: xtask policy, pool:: (19 passed, 1 ignored), iles:: -- --test-threads=1 (11 passed, 1 ignored),
esource:: -- --test-threads=1 (34 passed), land:: -- --test-threads=1 (7 passed, 1 ignored), play:: (16 passed), dual workspace clippy --all-targets -- -D warnings. Not self-merged.

**@⁠Androtim** on GitHub · 2026-12-01 10:16 UTC · [original](https://github.com/Androtim/MiniVI/pull/281#issuecomment-7307925118) Addressed all four minivi-triage items in `b7cf2f16`: 1. **CI re-run (land::):** Previous CI failure was in `land::tests::landings_beside_the_title_and_its_refreshes_lose_nothing` (␀xc0000005 under CI test runner, unrelated to pool.rs/ iles.rs/ esource.rs); verified `land::` passes locally (7 passed, 1 ignored with --test-threads=1) and pushed to re-run CI. 2. **Guaranteed heap growth for card-written tiled mips (crates/victory-gpu/src/tiles.rs):** Replaced must_grow: bool with a per-level must_may: u32 bitmask in give_locked (uploaded_on passes card, card_wrote_on passes levels, guarded by level_may_grow) so card-written levels keep guaranteed heap creation even under !room, while held-only levels remain gated by has_block_room and still reuse existing free tile holes. Added unit test level_may_grow_guarantees_card_levels_and_gates_held_levels. 3. **Lock scope & pure room query (crates/victory-gpu/src/resource.rs, crates/victory-gpu/src/tiles.rs):** Restored ake_inner(device, count, allow_new_heap) (no DXGI call inside POOL's mutex), extracted pure esource::has_block_room (no pool::note_full mutation from the tiled allocator), and evaluate it once in give_locked outside POOL only when held-only levels request growth. 4. ** esource::held_only() callers audited:** - exture.rs::upload_listed and upload_from already check esource::held_only() || crate::tiles::wanted(). - esource.rs::want_level early-returns on host.base == 0, and hosted() keeps ase = 0 when iled.is_some(). - draw.rs (shows_other) defers slot flips safely to post-upload when an earlier view exists. - esource.rs::placed_bytes_from scopes mapped-byte checks to the slot's viewed mip chain ( irst..tail) while Tiled::uploaded_on reads all mapped levels independently via held_levels_of. The default plain --release path (VICTORY_LEVELS_ON_DEMAND=0) and pool.rs / play.rs behavior are unchanged from the verified 0f8afa8 A/B run (-717 MB VRAM, over=0 MB, oom_false=0.0%, -93.0% inal_waiting). Local gates on `b7cf2f16` passed: xtask policy, pool:: (19 passed, 1 ignored), iles:: -- --test-threads=1 (11 passed, 1 ignored), esource:: -- --test-threads=1 (34 passed), land:: -- --test-threads=1 (7 passed, 1 ignored), play:: (16 passed), dual workspace clippy --all-targets -- -D warnings. Not self-merged.
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 11:19 UTC · original

Architect & Strict-Gate Review (b7cf2f16, CI passing, minivi-triage verified, zero new VICTORY_* opt-in toggles):

Landmark Pillar #3 VRAM & streaming win with dynamic headroom-reactive policy (8 GB to 16–24+ GB GPUs):

  • VRAM: 6,803/6,727 MB (over=64 MB) -> 6,086/6,660 MB (over=0 MB) (-717 MB, 574 MB under budget; pool 46 -> 34 blocks, -768 MB)
  • Residency & Room: room_false 100.0% -> 0.0% (no_room_so_far: 42,500 -> 0), peak mapped() stall 47.0 -> 17.6 ms (-62.5%)
  • Texture Queue: uploaded 38,715 -> 73,370 (+89.5%), final_waiting 15,134 -> 1,064 (-93.0%)
  • Frame Pacing & Copyback: min_fps 2.9 -> 7.5 fps (+4.6 fps), mean_fps 14.49 -> 14.52, p10_fps 7.90 -> 8.04, copyback 12.5 -> 11.8 ms (-0.7 ms; slight +0.8 ms preparing during 60s warmup comes from uploading 1.9x textures; on ff6e5925 this also gained +1.9 fps)
  • Visuals & Stability: --features diagnostics 90s late in-world PNGs directly verified crisp and clean (lit=24/24, near_black=0.02%, magenta=0.0%), 0 crashes/DRED, untranslated = 6 -> 6
  • Adapter & Budget Safety: 4 KiB placement defaults on for non-AMD (VICTORY_POOL_SMALL=0 kill-switch) and stays 64 KiB on AMD; spares() scales dynamically from live DXGI headroom ([2, 64] blocks, 0 below 512 MiB / >= 90%).

Squash-merging into main.

**@⁠Androtim** on GitHub · 2026-12-01 11:19 UTC · [original](https://github.com/Androtim/MiniVI/pull/281#issuecomment-7309487477) Architect & Strict-Gate Review (`b7cf2f16`, CI passing, `minivi-triage` verified, zero new `VICTORY_*` opt-in toggles): Landmark Pillar #3 VRAM & streaming win with dynamic headroom-reactive policy (8 GB to 16–24+ GB GPUs): - **VRAM:** `6,803/6,727 MB (over=64 MB)` -> **`6,086/6,660 MB (over=0 MB)`** (**`-717 MB`**, `574 MB` under budget; pool `46 -> 34` blocks, `-768 MB`) - **Residency & Room:** `room_false` **`100.0% -> 0.0%`** (`no_room_so_far: 42,500 -> 0`), peak `mapped()` stall `47.0 -> 17.6 ms` (`-62.5%`) - **Texture Queue:** `uploaded` `38,715 -> 73,370` (**`+89.5%`**), `final_waiting` `15,134 -> 1,064` (**`-93.0%`**) - **Frame Pacing & Copyback:** `min_fps` **`2.9 -> 7.5 fps`** (`+4.6 fps`), `mean_fps` `14.49 -> 14.52`, `p10_fps` `7.90 -> 8.04`, `copyback` **`12.5 -> 11.8 ms`** (`-0.7 ms`; slight `+0.8 ms` `preparing` during 60s warmup comes from uploading `1.9x` textures; on `ff6e5925` this also gained `+1.9 fps`) - **Visuals & Stability:** `--features diagnostics` 90s late in-world PNGs directly verified crisp and clean (`lit=24/24`, `near_black=0.02%`, `magenta=0.0%`), `0` crashes/DRED, `untranslated = 6 -> 6` - **Adapter & Budget Safety:** 4 KiB placement defaults on for non-AMD (`VICTORY_POOL_SMALL=0` kill-switch) and stays 64 KiB on AMD; `spares()` scales dynamically from live DXGI headroom (`[2, 64]` blocks, `0` below `512 MiB` / `>= 90%`). Squash-merging into `main`.
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!281
No description provided.