Add opt-in UMA fast path, tiered WDDM residency, and smart multi-GPU adapter scorer #282

Open
github-bot wants to merge 1 commit from github-bot/gh-282 into main AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 13:37 UTC · original
Vladimir-Human:feat/uma-wddm-adapter-scorer → main · +3072 −34 · 9 files · 1 commits · open

Summary

Adds three independently switchable host GPU memory and adapter subsystems in victory-gpu. All three behavioral paths default to 0 (OFF) so baseline behavior is unchanged unless explicitly opted in, allowing each subsystem to be measured solo on the same physical GPU pinned via VICTORY_D3D12_ADAPTER:

Switch Default Values Scope
VICTORY_UMA_FAST_PATH 0 0 (off), 1 (force on), auto (follow ARCHITECTURE1.UMA) Disables redundant RAM-to-RAM card buffer twins (shadow::cards, Host::card_ready, card_before, card_budget, shadow::card_room_kept() == 0) and bounce copy-queue staging (upq::on, relay_copy); VICTORY_CARD_BUFFERS=0|1 overrides card buffers independently.
VICTORY_WDDM_RESIDENCY 0 0 (off), 1 (on) Enables IDXGIAdapter3::SetVideoMemoryReservation (clamped <= AvailableForReservation and Budget), ID3D12Device1::SetResidencyPriority (HIGH = committed RTs/depth/twins/hot buffers, NORMAL = active textures/heaps, LOW/MINIMUM = idle pool blocks), and fence-safe Evict()/MakeResident() on aged idle pool.rs texture heaps (preserving VICTORY_RIPE_BLOCKS under normal VRAM, collapsing to 1/0 hot spares under >= 75%/>= 85% pressure; never evicts mapped STAGING).
VICTORY_SMART_ADAPTER 0 0 (off), 1 (on) Enables multi-criteria IDXGIFactory6 (DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) scoring of SM 6.6+, dedicated VRAM (>= 4 GiB), TiledResourcesTier, and target display output LUID affinity. When 0, preserves baseline first-SM-6.6+ selection with zero extra probe devices.

Always active (non-intrusive / explicit-user-only):

  • Explicit adapter filter fix (#131): VICTORY_D3D12_ADAPTER=<name|index> supports canonical DXGI indices ("0", "1"), 3+ digit numeric GPU model substrings ("4090", "6700", "4070"), and case-insensitive name substrings without misparsing or panicking, regardless of VICTORY_SMART_ADAPTER.
  • Read-only startup/presenter diagnostics (#212): Probes D3D12_FEATURE_ARCHITECTURE1 (logging uma, cache_coherent_uma, and active switch states) and checks MonitorFromWindow output adapter LUID vs device.GetAdapterLuid(), logging an explicit deduplicated warning on hybrid cross-adapter display mismatch.

Verification

Verified on Windows 11 with VICTORY_D3D12_DEBUG=1, --test-threads=1, 0 D3D12 debug errors:

  • cargo run -p xtask --locked -- policy (315 files ok) & cargo test -p xtask --locked (11/11)
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings (default & --all-features: 0 warnings)
  • HW (NVIDIA GeForce RTX 4070 SUPER):
    • Baseline (all 3 switches unset = 0): default 143/143 (5 ignored), --features diagnostics 144/144 (5 ignored; fast_path=false cards=true wddm_residency=false smart_adapter=false, stats_reserved_mb=0 updates=0 evictions=0).
    • Solo VICTORY_D3D12_ADAPTER=4070 + VICTORY_UMA_FAST_PATH=1: 2/2 (fast_path=true cards=false card_room_kept=0 wddm_residency=false smart_adapter=false, WDDM stats 0).
    • Solo VICTORY_D3D12_ADAPTER=4070 + VICTORY_WDDM_RESIDENCY=1: 2/2 (wddm_residency=true stats_reserved_mb=3072 updates=1 prio(H=1,N=2,L=1,M=2) evictions=2 restores=1 evicted_now=0, fast_path=false smart_adapter=false).
    • Solo VICTORY_SMART_ADAPTER=1: 1/1 (smart_adapter=true fast_path=false wddm_residency=false).
  • WARP (Microsoft Basic Render Driver, VICTORY_D3D12_WARP=1, --features diagnostics, VICTORY_D3D12_DEBUG=1):
    • Baseline (all 3 switches unset = 0): 144/144 (5 ignored; uma=true cc_uma=true fast_path=false cards=true wddm_residency=false smart_adapter=false, WDDM stats 0).
    • Solo VICTORY_UMA_FAST_PATH=auto: 1/1 (uma=true fast_path=true cards=false).
    • Solo VICTORY_WDDM_RESIDENCY=1: 2/2 (wddm_residency=true stats_reserved_mb=512 updates=1 prio(H=1,N=2,L=1,M=2) evictions=2 restores=1 evicted_now=0).
**@⁠Vladimir-Human** on GitHub · 2026-11-27 13:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282) `Vladimir-Human:feat/uma-wddm-adapter-scorer` → `main` · +3072 −34 · 9 files · 1 commits · open ## Summary Adds three independently switchable host GPU memory and adapter subsystems in `victory-gpu`. All three behavioral paths default to **`0` (OFF)** so baseline behavior is unchanged unless explicitly opted in, allowing each subsystem to be measured solo on the same physical GPU pinned via `VICTORY_D3D12_ADAPTER`: | Switch | Default | Values | Scope | | --- | --- | --- | --- | | `VICTORY_UMA_FAST_PATH` | `0` | `0` (off), `1` (force on), `auto` (follow `ARCHITECTURE1.UMA`) | Disables redundant RAM-to-RAM card buffer twins (`shadow::cards`, `Host::card_ready`, `card_before`, `card_budget`, `shadow::card_room_kept() == 0`) and bounce copy-queue staging (`upq::on`, `relay_copy`); `VICTORY_CARD_BUFFERS=0\|1` overrides card buffers independently. | | `VICTORY_WDDM_RESIDENCY` | `0` | `0` (off), `1` (on) | Enables `IDXGIAdapter3::SetVideoMemoryReservation` (clamped `<= AvailableForReservation` and `Budget`), `ID3D12Device1::SetResidencyPriority` (`HIGH` = committed RTs/depth/twins/hot buffers, `NORMAL` = active textures/heaps, `LOW`/`MINIMUM` = idle pool blocks), and fence-safe `Evict()`/`MakeResident()` on aged idle `pool.rs` texture heaps (preserving `VICTORY_RIPE_BLOCKS` under normal VRAM, collapsing to `1`/`0` hot spares under `>= 75%`/`>= 85%` pressure; never evicts mapped `STAGING`). | | `VICTORY_SMART_ADAPTER` | `0` | `0` (off), `1` (on) | Enables multi-criteria `IDXGIFactory6` (`DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE`) scoring of SM 6.6+, dedicated VRAM (`>= 4 GiB`), `TiledResourcesTier`, and target display output LUID affinity. When `0`, preserves baseline first-SM-6.6+ selection with zero extra probe devices. | Always active (non-intrusive / explicit-user-only): - **Explicit adapter filter fix (#131):** `VICTORY_D3D12_ADAPTER=<name|index>` supports canonical DXGI indices (`"0"`, `"1"`), 3+ digit numeric GPU model substrings (`"4090"`, `"6700"`, `"4070"`), and case-insensitive name substrings without misparsing or panicking, regardless of `VICTORY_SMART_ADAPTER`. - **Read-only startup/presenter diagnostics (#212):** Probes `D3D12_FEATURE_ARCHITECTURE1` (logging `uma`, `cache_coherent_uma`, and active switch states) and checks `MonitorFromWindow` output adapter LUID vs `device.GetAdapterLuid()`, logging an explicit deduplicated warning on hybrid cross-adapter display mismatch. ## Verification Verified on Windows 11 with `VICTORY_D3D12_DEBUG=1`, `--test-threads=1`, `0` D3D12 debug errors: - `cargo run -p xtask --locked -- policy` (`315 files ok`) & `cargo test -p xtask --locked` (`11/11`) - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings` (default & `--all-features`: `0` warnings) - **HW (`NVIDIA GeForce RTX 4070 SUPER`):** - Baseline (all 3 switches unset = `0`): default `143/143` (5 ignored), `--features diagnostics` `144/144` (5 ignored; `fast_path=false cards=true wddm_residency=false smart_adapter=false`, `stats_reserved_mb=0 updates=0 evictions=0`). - Solo `VICTORY_D3D12_ADAPTER=4070` + `VICTORY_UMA_FAST_PATH=1`: `2/2` (`fast_path=true cards=false card_room_kept=0 wddm_residency=false smart_adapter=false`, WDDM stats `0`). - Solo `VICTORY_D3D12_ADAPTER=4070` + `VICTORY_WDDM_RESIDENCY=1`: `2/2` (`wddm_residency=true stats_reserved_mb=3072 updates=1 prio(H=1,N=2,L=1,M=2) evictions=2 restores=1 evicted_now=0`, `fast_path=false smart_adapter=false`). - Solo `VICTORY_SMART_ADAPTER=1`: `1/1` (`smart_adapter=true fast_path=false wddm_residency=false`). - **WARP (`Microsoft Basic Render Driver`, `VICTORY_D3D12_WARP=1`, `--features diagnostics`, `VICTORY_D3D12_DEBUG=1`):** - Baseline (all 3 switches unset = `0`): `144/144` (5 ignored; `uma=true cc_uma=true fast_path=false cards=true wddm_residency=false smart_adapter=false`, WDDM stats `0`). - Solo `VICTORY_UMA_FAST_PATH=auto`: `1/1` (`uma=true fast_path=true cards=false`). - Solo `VICTORY_WDDM_RESIDENCY=1`: `2/2` (`wddm_residency=true stats_reserved_mb=512 updates=1 prio(H=1,N=2,L=1,M=2) evictions=2 restores=1 evicted_now=0`).
- Probe D3D12_FEATURE_ARCHITECTURE1 at device init (with legacy ARCHITECTURE fallback and runtime telemetry) and automatically disable redundant RAM-to-RAM card buffer twins and copy-queue bounce copies on UMA adapters, with VICTORY_UMA_FAST_PATH=0/1 and VICTORY_CARD_BUFFERS=0/1 controls and zero regression on discrete GPUs.
- Add residency_wddm.rs wrapping IDXGIAdapter3::SetVideoMemoryReservation (clamped to OS AvailableForReservation and Budget), ID3D12Device1::SetResidencyPriority (HIGH for RT/depth/hot buffers, NORMAL for active textures/heaps, LOW/MINIMUM for idle pool blocks), and fence-safe lock-free Evict()/MakeResident() on aged idle pool.rs texture heaps with VICTORY_WDDM_RESIDENCY=0 opt-out and WARP/legacy driver tolerance.
- Add adapter.rs upgrading hardware selection via IDXGIFactory6 (DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) scoring dedicated VRAM (>= 4 GiB), SM 6.6+, TiledResourcesTier, and display output LUID affinity, checking MonitorFromWindow output adapter LUID vs device.GetAdapterLuid() at startup and presenter creation, and fixing numeric GPU model substring filters ("4090", "6700", etc.) in VICTORY_D3D12_ADAPTER.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:47:46 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 13:43 UTC · original

@⁠Vladimir-Human UMA, residency reservations and adapter selection should be independently testable. Start with an explicit adapter choice so the same physical GPU runs both sides. Record local and shared memory alongside frame time before recommending any of these as a default.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:43 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7219862644) @⁠Vladimir-Human UMA, residency reservations and adapter selection should be independently testable. Start with an explicit adapter choice so the same physical GPU runs both sides. Record local and shared memory alongside frame time before recommending any of these as a default.
github-bot changed title from Add native UMA fast path, tiered WDDM residency, and smart multi-GPU adapter scorer to Add opt-in UMA fast path, tiered WDDM residency, and smart multi-GPU adapter scorer 2026-11-27 14:19:43 +00:00
github-bot force-pushed github-bot/gh-282 from 572aa47524 to 56af81d4f7 2026-11-27 14:19:43 +00:00 Compare
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 14:12 UTC · original

@⁠TaynanGT Updated to 56af81d4 (rebased onto main, 4/4 CI green). All three behavioral paths now default to 0 (OFF) so baseline behavior stays unchanged unless explicitly opted in, and each subsystem can be measured independently on the same physical GPU pinned via VICTORY_D3D12_ADAPTER:

Switch Default Values What changes when enabled
VICTORY_UMA_FAST_PATH 0 0, 1, auto 1 forces UMA fast path (for same-GPU A/B); auto follows D3D12_FEATURE_ARCHITECTURE1.UMA. Disables card buffer twins (shadow::cards, Host::card_ready, card_before, card_budget, shadow::card_room_kept() == 0) and bounce copy-queue staging (upq::on, relay_copy). VICTORY_CARD_BUFFERS=0|1 overrides card buffers independently.
VICTORY_WDDM_RESIDENCY 0 0, 1 Enables IDXGIAdapter3::SetVideoMemoryReservation (clamped <= AvailableForReservation and Budget), ID3D12Device1::SetResidencyPriority (HIGH RT/depth/hot buffers, NORMAL active textures/heaps, LOW/MINIMUM idle pool blocks), and fence-safe Evict()/MakeResident() on aged idle pool.rs heaps (preserving VICTORY_RIPE_BLOCKS under normal VRAM, collapsing to 1/0 hot spares under >= 75%/>= 85% pressure).
VICTORY_SMART_ADAPTER 0 0, 1 Enables multi-criteria IDXGIFactory6 (DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) scoring (SM 6.6+, dedicated VRAM >= 4 GiB, TiledResourcesTier, output LUID tiebreak). When 0, keeps the baseline first-SM-6.6+ loop with zero extra probe devices.

Explicit VICTORY_D3D12_ADAPTER=<name|index> selection (including numeric GPU model substrings such as 4070, 4090, 6700) and read-only startup telemetry (uma, cache_coherent_uma, active switch states, output LUID check, and local/shared DXGI_QUERY_VIDEO_MEMORY_INFO budget/usage/reservation alongside frame-time logs) remain active across both control and opt-in runs.

Suggested same-GPU A/B sequence (pinning VICTORY_D3D12_ADAPTER=<gpu> across all runs and recording local/shared VRAM + frame time):

  1. Control: all three switches unset (0)
  2. UMA path solo: VICTORY_UMA_FAST_PATH=1 (or auto on an APU)
  3. WDDM residency solo: VICTORY_WDDM_RESIDENCY=1
  4. Smart adapter solo (multi-GPU hosts without VICTORY_D3D12_ADAPTER): VICTORY_SMART_ADAPTER=1

Tests added/verified on both RTX 4070 SUPER and WARP (VICTORY_D3D12_DEBUG=1, 0 debug errors): adapter::tests::all_three_subsystems_default_off_and_toggle_independently, adapter::tests::uma_policy_defaults_off_and_toggles_independently_with_safe_overrides, adapter::tests::live_device_probes_architecture1_and_luid_cleanly, and residency_wddm::tests::live_wddm_reservation_priority_and_evict_make_resident_roundtrip.

**@⁠Vladimir-Human** on GitHub · 2026-11-27 14:12 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7220484579) @⁠TaynanGT Updated to `56af81d4` (rebased onto `main`, 4/4 CI green). All three behavioral paths now default to `0` (`OFF`) so baseline behavior stays unchanged unless explicitly opted in, and each subsystem can be measured independently on the same physical GPU pinned via `VICTORY_D3D12_ADAPTER`: | Switch | Default | Values | What changes when enabled | | --- | --- | --- | --- | | `VICTORY_UMA_FAST_PATH` | `0` | `0`, `1`, `auto` | `1` forces UMA fast path (for same-GPU A/B); `auto` follows `D3D12_FEATURE_ARCHITECTURE1.UMA`. Disables card buffer twins (`shadow::cards`, `Host::card_ready`, `card_before`, `card_budget`, `shadow::card_room_kept() == 0`) and bounce copy-queue staging (`upq::on`, `relay_copy`). `VICTORY_CARD_BUFFERS=0\|1` overrides card buffers independently. | | `VICTORY_WDDM_RESIDENCY` | `0` | `0`, `1` | Enables `IDXGIAdapter3::SetVideoMemoryReservation` (clamped `<= AvailableForReservation` and `Budget`), `ID3D12Device1::SetResidencyPriority` (`HIGH` RT/depth/hot buffers, `NORMAL` active textures/heaps, `LOW`/`MINIMUM` idle pool blocks), and fence-safe `Evict()`/`MakeResident()` on aged idle `pool.rs` heaps (preserving `VICTORY_RIPE_BLOCKS` under normal VRAM, collapsing to `1`/`0` hot spares under `>= 75%`/`>= 85%` pressure). | | `VICTORY_SMART_ADAPTER` | `0` | `0`, `1` | Enables multi-criteria `IDXGIFactory6` (`DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE`) scoring (SM 6.6+, dedicated VRAM `>= 4 GiB`, `TiledResourcesTier`, output LUID tiebreak). When `0`, keeps the baseline first-SM-6.6+ loop with zero extra probe devices. | Explicit `VICTORY_D3D12_ADAPTER=<name|index>` selection (including numeric GPU model substrings such as `4070`, `4090`, `6700`) and read-only startup telemetry (`uma`, `cache_coherent_uma`, active switch states, output LUID check, and local/shared `DXGI_QUERY_VIDEO_MEMORY_INFO` budget/usage/reservation alongside frame-time logs) remain active across both control and opt-in runs. Suggested same-GPU A/B sequence (pinning `VICTORY_D3D12_ADAPTER=<gpu>` across all runs and recording local/shared VRAM + frame time): 1. Control: all three switches unset (`0`) 2. UMA path solo: `VICTORY_UMA_FAST_PATH=1` (or `auto` on an APU) 3. WDDM residency solo: `VICTORY_WDDM_RESIDENCY=1` 4. Smart adapter solo (multi-GPU hosts without `VICTORY_D3D12_ADAPTER`): `VICTORY_SMART_ADAPTER=1` Tests added/verified on both RTX 4070 SUPER and WARP (`VICTORY_D3D12_DEBUG=1`, `0` debug errors): `adapter::tests::all_three_subsystems_default_off_and_toggle_independently`, `adapter::tests::uma_policy_defaults_off_and_toggles_independently_with_safe_overrides`, `adapter::tests::live_device_probes_architecture1_and_luid_cleanly`, and `residency_wddm::tests::live_wddm_reservation_priority_and_evict_make_resident_roundtrip`.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:25 UTC · original

@⁠Vladimir-Human The three switches now give us independent comparisons. Start with WDDM residency alone on the same discrete adapter and report the eviction count, local/shared memory and p10 frame rate. Test auto for the UMA path on an APU and leave the scorer for a machine with two eligible adapters.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7220761736) @⁠Vladimir-Human The three switches now give us independent comparisons. Start with WDDM residency alone on the same discrete adapter and report the eviction count, local/shared memory and p10 frame rate. Test `auto` for the UMA path on an APU and leave the scorer for a machine with two eligible adapters.
Author
Owner

@⁠Facostarr on GitHub · 2026-11-27 16:20 UTC · original

I tried the effect of the UMA fast path on an APU (Ryzen AI Max+ 395 / Radeon 8060S, driver 32.0.32029.2010), without building the PR. Per the diff, for the -Machine 7900xtx profile the UMA policy comes down to VICTORY_CARD_BUFFERS=0, VICTORY_RELAY_COPY=0 and VICTORY_INDIRECT_CARD_BUDGET=0 (VICTORY_UP_QUEUE and VICTORY_CARD_WINDOWS_MB are already off by default), so I ran 877a40e with those three.

Series S, same save, world only: 3 FPS median against 17 with card buffers on. The CPU takes over the snapshots and compares: copying back goes from 14-18 ms to 120-310 ms per frame, preparing from 46-52 ms to 300-470 ms, and private memory reaches 112.8 GB (commit 153.9 GB, from 31.5 and 73 GB). On this UMA APU, the compare on the card is what keeps the host fast, so auto would be a large regression on such machines.

Also, unless I misread it, the pool.rs changes (take_ripe, reclaim) run on the default path with all three new switches at 0, so the PR may not be behaviour-neutral by default; worth a check.

Full report, with log lines and the other switches tried on this APU: #319

**@⁠Facostarr** on GitHub · 2026-11-27 16:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7223140253) I tried the effect of the UMA fast path on an APU (Ryzen AI Max+ 395 / Radeon 8060S, driver 32.0.32029.2010), without building the PR. Per the diff, for the `-Machine 7900xtx` profile the UMA policy comes down to `VICTORY_CARD_BUFFERS=0`, `VICTORY_RELAY_COPY=0` and `VICTORY_INDIRECT_CARD_BUDGET=0` (`VICTORY_UP_QUEUE` and `VICTORY_CARD_WINDOWS_MB` are already off by default), so I ran `877a40e` with those three. Series S, same save, world only: **3 FPS median against 17** with card buffers on. The CPU takes over the snapshots and compares: copying back goes from 14-18 ms to 120-310 ms per frame, preparing from 46-52 ms to 300-470 ms, and private memory reaches 112.8 GB (commit 153.9 GB, from 31.5 and 73 GB). On this UMA APU, the compare on the card is what keeps the host fast, so `auto` would be a large regression on such machines. Also, unless I misread it, the `pool.rs` changes (`take_ripe`, `reclaim`) run on the default path with all three new switches at 0, so the PR may not be behaviour-neutral by default; worth a check. Full report, with log lines and the other switches tried on this APU: https://git.gtahub.st/github/TaynanGT--Vice-Tay/issues/319
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 16:25 UTC · original

@⁠Facostarr The 17-to-3 FPS result is enough to keep automatic UMA selection off for this APU. It applies to the three toggles on 877a40e. The exact PR still needs the same-save check. I’ll check whether take_ripe and reclaim enter the new path with all three switches at zero.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7223243140) @⁠Facostarr The 17-to-3 FPS result is enough to keep automatic UMA selection off for this APU. It applies to the three toggles on `877a40e`. The exact PR still needs the same-save check. I’ll check whether `take_ripe` and `reclaim` enter the new path with all three switches at zero.
github-bot force-pushed github-bot/gh-282 from 56af81d4f7 to b4c1f1dd25 2026-11-27 19:56:20 +00:00 Compare
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 19:53 UTC · original

@⁠Facostarr @⁠TaynanGT Updated #282 (b4c1f1dd, rebased onto main):

  1. Strict default-0 neutrality in pool.rs (confirmed @Facostarr's catch):

    • With VICTORY_WDDM_RESIDENCY=0 (default), pool::room, pool::texture, Pool::take_ripe, and Pool::reclaim now execute the exact unmodified baseline paths — skipping host::submissions(), queue::queued(), reclaim_with_fence, take_ripe_or_restore, and set_heap_priority. Added pool::tests::default_disabled_wddm_take_ripe_and_reclaim_preserve_baseline_order verifying baseline ordering and zero residency side effects at 0.
    • Note that the subtle behavioral shift @Facostarr spotted when reading the earlier diff was real in pool.rs (take_ripe/reclaim entered take_ripe_or_restore/reclaim_with_fence even at 0); that is now completely eliminated.
  2. Removed automatic UMA card-buffer disable:

    • Removed UmaFastPathMode::Auto so VICTORY_UMA_FAST_PATH=auto (or unset) resolves to Off and never disables card buffers automatically on UMA APUs after @Facostarr's Ryzen AI Max+ 395 / Radeon 8060S measurement (17 -> 3 FPS regression and 31.5 -> 112.8 GB private memory spike). VICTORY_UMA_FAST_PATH=1 remains strictly an explicit diagnostic override.

Verified cleanly on b4c1f1dd (xtask policy 324 files ok, clippy -p victory-gpu --all-targets -- -D warnings 0 warnings, and both VICTORY_D3D12_DEBUG=1 HW RTX 4070 SUPER and VICTORY_D3D12_WARP=1: adapter::tests 6/6, residency_wddm::tests 3/3, pool::tests 12/12).

**@⁠Vladimir-Human** on GitHub · 2026-11-27 19:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7226977352) @⁠Facostarr @⁠TaynanGT Updated `#282` (`b4c1f1dd`, rebased onto `main`): 1. **Strict default-0 neutrality in `pool.rs` (confirmed `@Facostarr`'s catch):** - With `VICTORY_WDDM_RESIDENCY=0` (default), `pool::room`, `pool::texture`, `Pool::take_ripe`, and `Pool::reclaim` now execute the exact unmodified baseline paths — skipping `host::submissions()`, `queue::queued()`, `reclaim_with_fence`, `take_ripe_or_restore`, and `set_heap_priority`. Added `pool::tests::default_disabled_wddm_take_ripe_and_reclaim_preserve_baseline_order` verifying baseline ordering and zero residency side effects at `0`. - Note that the subtle behavioral shift `@Facostarr` spotted when reading the earlier diff was real in `pool.rs` (`take_ripe`/`reclaim` entered `take_ripe_or_restore`/`reclaim_with_fence` even at `0`); that is now completely eliminated. 2. **Removed automatic UMA card-buffer disable:** - Removed `UmaFastPathMode::Auto` so `VICTORY_UMA_FAST_PATH=auto` (or unset) resolves to `Off` and never disables card buffers automatically on UMA APUs after `@Facostarr`'s Ryzen AI Max+ 395 / Radeon 8060S measurement (17 -> 3 FPS regression and 31.5 -> 112.8 GB private memory spike). `VICTORY_UMA_FAST_PATH=1` remains strictly an explicit diagnostic override. Verified cleanly on `b4c1f1dd` (`xtask policy` 324 files ok, `clippy -p victory-gpu --all-targets -- -D warnings` 0 warnings, and both `VICTORY_D3D12_DEBUG=1` HW RTX 4070 SUPER and `VICTORY_D3D12_WARP=1`: `adapter::tests` 6/6, `residency_wddm::tests` 3/3, `pool::tests` 12/12).
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 19:59 UTC · original

@⁠Vladimir-Human The new guard in pool.rs restores the default-off reclaim path. Please split out WDDM residency first, with the test that checks baseline ordering and zero residency side effects. Keep auto off on UMA given the Radeon 8060S result.

**@⁠TaynanGT** on GitHub · 2026-11-27 19:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/282#issuecomment-7227062355) @⁠Vladimir-Human The new guard in `pool.rs` restores the default-off reclaim path. Please split out WDDM residency first, with the test that checks baseline ordering and zero residency side effects. Keep `auto` off on UMA given the Radeon 8060S result.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/282/head:github-bot/gh-282'
git switch 'github-bot/gh-282'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-282'
git switch 'github-bot/gh-282'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-282'
git switch 'github-bot/gh-282'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-282'
git switch 'main'
git merge --squash 'github-bot/gh-282'
git switch 'main'
git merge --ff-only 'github-bot/gh-282'
git switch 'main'
git merge 'github-bot/gh-282'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.