feat(gpu): opt-in D3D12 sparse VA page table for loose windows #260

Closed
github-bot wants to merge 638 commits from github-bot/gh-260 into main AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-27 12:45 UTC · original
Vladimir-Human:feat/sparse-va-loose-windows → main · +62938 −5249 · 201 files · 638 commits · closed without merging

Summary

Adds an opt-in (VICTORY_SPARSE_WINDOWS=1, off by default) D3D12 Hardware Virtual Page Table (crates/victory-gpu/src/sparse_va.rs) backing loose title-memory windows with ID3D12Device::CreateReservedResource, pooled 64 KiB ID3D12Heap tiles, and ID3D12CommandQueue::UpdateTileMappings.

Because D3D12 standard buffer tiles are 64 KiB — a 1:1 match with watch::PAGE — overlapping loose-window views at different base addresses and sizes map to the exact same physical GPU tiles:

  • Zero duplicate physical backing across overlapping loose views (both sized asks and root-view asks).
  • Zero committed tiles for untouched sparse gaps inside reserved 4 MiB / 8 MiB virtual windows.
  • Hardware-coherent aliases via D3D12_RESOURCE_BARRIER_TYPE_ALIASING after tile updates/uploads and UAV activity.
  • Fence-safe reclamation of unmapped (D3D12_TILE_RANGE_FLAG_NULL) physical tiles, retired reserved buffers, upload chunks, and empty heaps.

Key Implementation Details

  • crates/victory-gpu/src/sparse_va.rs (new):
    • Runtime capability probe (D3D12_FEATURE_DATA_D3D12_OPTIONS::TiledResourcesTier >= Tier 2); cleanly falls back to standard loose windows when VICTORY_SPARSE_WINDOWS != 1 or unsupported.
    • Pooled ID3D12Heap tile allocator (64 KiB tiles, 256 tiles / 16 MiB per heap) with coalesced UpdateTileMappings runs and fence-tracked reclamation.
    • Cached CPU payload staging (PendingUpload) flushed into exact-size single-shot upload chunks (zero reads from write-combined UPLOAD memory), pre-allocated prior to draining queues or committing MappedOnGpu transitions, with signal-ordered fence advancement and GetDeviceRemovedReason()-safe waits.
    • Canonical per-page copied_at timestamps and cross-window active UAV range tracking (active_uav_ranges + uav_pages), single-read UAV snapshot capture with active-range subtraction, trimmed read_into/put 3-way merge preserving title wins on repeated copy-backs, and lock-free has_active_uav().
  • crates/victory-gpu/src/shadow.rs:
    • Wires opt-in LooseBacking::Sparse into make_loose_backing / build_loose_shadow outside the global LOOSE table lock (preserving placed > sparse > mapped > shared+card priority).
    • Shadow::own_buffer_refs() (2 for sparse, 1 for standard) so let_go_idle evicts unreferenced idle sparse windows and reclaims their tiles while descriptor-pinned windows (refs > 2) stay resident.
    • Cross-window UAV visibility in writes_pending, writes_pending_in, stale_under_writes, merge_under_writes, update, nothing_new, exact range release in copy_back_done, reference-only placed_copy, and 64 KiB PIECE splitting in find_all.
  • crates/victory-gpu/src/host.rs (+6/-4 lines):
    • Lock-free crate::sparse_va::has_active_uav() gate in Host::submit settles rare active sparse UAV flights before submitting the next flight so async relay readbacks stay ordered on self.queue.
  • crates/victory-gpu/src/lib.rs:
    • Registers #[cfg(windows)] mod sparse_va;.

Verification (VICTORY_D3D12_DEBUG=1, --test-threads=1, 0 D3D12 debug errors)

  • Capability Probe:
    • Hardware (NVIDIA GeForce RTX 4070 SUPER): TiledResourcesTier = 4, D3D12 debug layer ON.
    • Software (WARP): TiledResourcesTier = 3, D3D12 debug layer ON.
  • Clippy (rustc 1.98.1, --all-targets --locked -- -D warnings):
    • Default & --features diagnostics: 0 warnings.
  • Tests (all passing with 0 D3D12 debug errors):
    • cargo test -p victory-gpu --lib sparse_va:: -- --test-threads=1 (default & --features diagnostics): 5/5 passed — covers overlapping alias coherence (CPU upload + GPU compute UAV write observed bit-exact across aliased windows with 0 duplicated tiles), untouched sparse gaps committing 0 tiles, explicit tile unmap/window drop & fence-safe reclamation/recycling, coalesced uploads & early drop, and 7-invariant shadow integration regressions (let_go_idle eviction, placed_copy 0 uploads, single-read declare_uav_write, cross-window UAV visibility, trimmed read_into across a decommitted 4 KiB sub-page, repeated copy-back conflict preservation, find_all 64 KiB PIECE split, and global has_active_uav()).
    • cargo test -p victory-gpu --lib shadow:: -- --test-threads=1: 59/59 passed (4 ignored).
    • cargo run -p xtask -- policy: 314 files ok; cargo test -p xtask --locked: 11/11 passed.

Benchmark vs Separate Loose Windows (VICTORY_D3D12_DEBUG=1, 56 overlapping views, 144 MiB reserved VA)

Adapter Tier Committed Memory (baseline -> sparse) Copy Volume (baseline -> sparse) Window Create Time Total Multi-Frame Run UpdateTileMappings
RTX 4070 SUPER (HW) 4 144 MiB -> 4,096 KiB (36.0x less, 16 MiB pool) 24,576 KiB -> 8,192 KiB (3.00x less) 34,738 us -> 1,379 us (25.2x faster) 61,069 us -> 38,998 us (1.57x faster, 5 frames x 16 passes) 56 calls / 2,935 us
WARP (SW) 3 144 MiB -> 4,096 KiB (36.0x less, 16 MiB pool) 24,576 KiB -> 8,192 KiB (3.00x less) 753,229 us -> 745 us (1,011x faster) 926,310 us -> 601,273 us (1.54x faster, 5 frames x 2 passes) 56 calls / 1,195 us

Default Impact

  • Strictly opt-in via VICTORY_SPARSE_WINDOWS=1. With the flag unset, zero sparse resources are created and default loose-window behavior is unchanged (has_active_uav() is a single relaxed/acquire atomic read returning false).
**@⁠Vladimir-Human** on GitHub · 2026-11-27 12:45 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260) `Vladimir-Human:feat/sparse-va-loose-windows` → `main` · +62938 −5249 · 201 files · 638 commits · closed without merging ## Summary Adds an opt-in (`VICTORY_SPARSE_WINDOWS=1`, **off by default**) **D3D12 Hardware Virtual Page Table** (`crates/victory-gpu/src/sparse_va.rs`) backing loose title-memory windows with `ID3D12Device::CreateReservedResource`, pooled 64 KiB `ID3D12Heap` tiles, and `ID3D12CommandQueue::UpdateTileMappings`. Because D3D12 standard buffer tiles are 64 KiB — a 1:1 match with `watch::PAGE` — overlapping loose-window views at different base addresses and sizes map to the **exact same physical GPU tiles**: - **Zero duplicate physical backing** across overlapping loose views (both sized asks and root-view asks). - **Zero committed tiles** for untouched sparse gaps inside reserved 4 MiB / 8 MiB virtual windows. - **Hardware-coherent aliases** via `D3D12_RESOURCE_BARRIER_TYPE_ALIASING` after tile updates/uploads and UAV activity. - **Fence-safe reclamation** of unmapped (`D3D12_TILE_RANGE_FLAG_NULL`) physical tiles, retired reserved buffers, upload chunks, and empty heaps. ## Key Implementation Details - **`crates/victory-gpu/src/sparse_va.rs` (new):** - Runtime capability probe (`D3D12_FEATURE_DATA_D3D12_OPTIONS::TiledResourcesTier >= Tier 2`); cleanly falls back to standard loose windows when `VICTORY_SPARSE_WINDOWS != 1` or unsupported. - Pooled `ID3D12Heap` tile allocator (`64 KiB` tiles, `256` tiles / `16 MiB` per heap) with coalesced `UpdateTileMappings` runs and fence-tracked reclamation. - Cached CPU payload staging (`PendingUpload`) flushed into exact-size single-shot upload chunks (zero reads from write-combined `UPLOAD` memory), pre-allocated prior to draining queues or committing `MappedOnGpu` transitions, with signal-ordered fence advancement and `GetDeviceRemovedReason()`-safe waits. - Canonical per-page `copied_at` timestamps and cross-window active UAV range tracking (`active_uav_ranges` + `uav_pages`), single-read UAV snapshot capture with active-range subtraction, trimmed `read_into`/`put` 3-way merge preserving title wins on repeated copy-backs, and lock-free `has_active_uav()`. - **`crates/victory-gpu/src/shadow.rs`:** - Wires opt-in `LooseBacking::Sparse` into `make_loose_backing` / `build_loose_shadow` outside the global `LOOSE` table lock (preserving `placed` > `sparse` > `mapped` > `shared+card` priority). - `Shadow::own_buffer_refs()` (`2` for sparse, `1` for standard) so `let_go_idle` evicts unreferenced idle sparse windows and reclaims their tiles while descriptor-pinned windows (`refs > 2`) stay resident. - Cross-window UAV visibility in `writes_pending`, `writes_pending_in`, `stale_under_writes`, `merge_under_writes`, `update`, `nothing_new`, exact range release in `copy_back_done`, reference-only `placed_copy`, and 64 KiB `PIECE` splitting in `find_all`. - **`crates/victory-gpu/src/host.rs` (+6/-4 lines):** - Lock-free `crate::sparse_va::has_active_uav()` gate in `Host::submit` settles rare active sparse UAV flights before submitting the next flight so async `relay` readbacks stay ordered on `self.queue`. - **`crates/victory-gpu/src/lib.rs`:** - Registers `#[cfg(windows)] mod sparse_va;`. ## Verification (`VICTORY_D3D12_DEBUG=1`, `--test-threads=1`, `0` D3D12 debug errors) - **Capability Probe:** - Hardware (`NVIDIA GeForce RTX 4070 SUPER`): `TiledResourcesTier = 4`, D3D12 debug layer ON. - Software (`WARP`): `TiledResourcesTier = 3`, D3D12 debug layer ON. - **Clippy (`rustc 1.98.1`, `--all-targets --locked -- -D warnings`):** - Default & `--features diagnostics`: **0 warnings**. - **Tests (all passing with `0` D3D12 debug errors):** - `cargo test -p victory-gpu --lib sparse_va:: -- --test-threads=1` (default & `--features diagnostics`): **5/5 passed** — covers overlapping alias coherence (CPU upload + GPU compute UAV write observed bit-exact across aliased windows with 0 duplicated tiles), untouched sparse gaps committing 0 tiles, explicit tile unmap/window drop & fence-safe reclamation/recycling, coalesced uploads & early drop, and 7-invariant shadow integration regressions (`let_go_idle` eviction, `placed_copy` 0 uploads, single-read `declare_uav_write`, cross-window UAV visibility, trimmed `read_into` across a decommitted 4 KiB sub-page, repeated copy-back conflict preservation, `find_all` 64 KiB `PIECE` split, and global `has_active_uav()`). - `cargo test -p victory-gpu --lib shadow:: -- --test-threads=1`: **59/59 passed** (4 ignored). - `cargo run -p xtask -- policy`: `314 files ok`; `cargo test -p xtask --locked`: **11/11 passed**. ## Benchmark vs Separate Loose Windows (`VICTORY_D3D12_DEBUG=1`, 56 overlapping views, 144 MiB reserved VA) | Adapter | Tier | Committed Memory (baseline -> sparse) | Copy Volume (baseline -> sparse) | Window Create Time | Total Multi-Frame Run | `UpdateTileMappings` | |---|---|---|---|---|---|---| | RTX 4070 SUPER (HW) | 4 | `144 MiB` -> `4,096 KiB` (**36.0x less**, `16 MiB` pool) | `24,576 KiB` -> `8,192 KiB` (**3.00x less**) | `34,738 us` -> `1,379 us` (**25.2x faster**) | `61,069 us` -> `38,998 us` (**1.57x faster**, 5 frames x 16 passes) | 56 calls / `2,935 us` | | WARP (SW) | 3 | `144 MiB` -> `4,096 KiB` (**36.0x less**, `16 MiB` pool) | `24,576 KiB` -> `8,192 KiB` (**3.00x less**) | `753,229 us` -> `745 us` (**1,011x faster**) | `926,310 us` -> `601,273 us` (**1.54x faster**, 5 frames x 2 passes) | 56 calls / `1,195 us` | ## Default Impact - Strictly opt-in via `VICTORY_SPARSE_WINDOWS=1`. With the flag unset, zero sparse resources are created and default loose-window behavior is unchanged (`has_active_uav()` is a single relaxed/acquire atomic read returning `false`).
Add an opt-in (`VICTORY_SPARSE_WINDOWS=1`, off by default) D3D12 hardware
virtual page table (`crates/victory-gpu/src/sparse_va.rs`) built on
`ID3D12Device::CreateReservedResource`, pooled 64 KiB `ID3D12Heap` tiles,
and `ID3D12CommandQueue::UpdateTileMappings` so overlapping loose-window
views share physical GPU backing tiles 1:1 with `watch::PAGE` (64 KiB).

Key design points:
- Zero duplicate physical backing across overlapping loose views and zero
  committed tiles for untouched sparse gaps.
- Cached CPU payload staging with coalesced exact-size upload chunks,
  hardware-coherent tile aliasing barriers, and fence-safe tile/heap/
  resource reclamation (signal-ordered fence advancement, device-removed
  safe waits, and no premature frame reuse on failed readbacks).
- Exact idle COM refcount accounting (`Shadow::own_buffer_refs() == 2` for
  sparse windows) so `shadow::let_go_idle` evicts unreferenced windows and
  reclaims tiles while descriptor-pinned windows stay resident.
- Canonical cross-window active UAV range tracking, single-read snapshot
  capture without active-UAV clobber, trimmed `read_into`/`put` 3-way
  merge preserving title wins on repeated copy-backs, 64 KiB PIECE split
  in `shadow::find_all`, and lock-free `has_active_uav()` settle gate in
  `Host::submit` so async relay readbacks stay ordered.
- Real D3D12 hardware (Tier 4) and WARP (Tier 3) tests under
  `VICTORY_D3D12_DEBUG=1` covering overlapping aliases, sparse gaps,
  tile unmap/reclamation, all shadow integration invariants, and memory/
  throughput deltas against separate loose windows.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:00:07 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:53 UTC · original

@⁠Vladimir-Human The sparse path needs the tile lifetime and the view lifetime checked together. I’ll look at overlapping windows that share a tile, an unmapped gap and a tile retired behind a fence. Keeping this opt-in gives us a clean baseline while the memory savings are measured in the same scene.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7218806946) @⁠Vladimir-Human The sparse path needs the tile lifetime and the view lifetime checked together. I’ll look at overlapping windows that share a tile, an unmapped gap and a tile retired behind a fence. Keeping this opt-in gives us a clean baseline while the memory savings are measured in the same scene.
Author
Owner

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

@⁠TaynanGT Here are the exact implementation and test entry points covering those three areas in 1ec48ce9:

1. Overlapping windows sharing a canonical 64 KiB tile & cross-window UAV lifetime

  • Canonical tile sharing & aliasing: crates/victory-gpu/src/sparse_va.rs — ensure_page (L517) allocates at most one 64 KiB ID3D12Heap tile per canonical title_page and maps it into every overlapping window (create_window L965 maps already-committed canonical pages into newly opened overlapping views); flush (L1491, barrier at L1794) emits D3D12_RESOURCE_BARRIER_TYPE_ALIASING after uploads and UAV activity.
  • Cross-window active UAV tracking: sparse_va.rs — declare_uav_write (L1211, single-read snapshot + subtraction of all already-active UAV ranges across overlapping windows), finish_uav_ranges (L1316), has_active_uav_in (L1347), paired with crates/victory-gpu/src/shadow.rs writes_pending / writes_pending_in (L4621-L4639), stale_under_writes / merge_under_writes (L4652-L4715), update (L4961, skips cross-window active UAV spans), copy_back_done (L4530), and the lock-free has_active_uav() settle gate in crates/victory-gpu/src/host.rs (L6350-L6357).
  • Tests (HW Tier 4 & WARP Tier 3, VICTORY_D3D12_DEBUG=1): run_overlapping_views_suite (sparse_va.rs:L2722-L2902, CPU upload + GPU compute UAV write observed bit-exact across 3 aliased windows with committed_tiles deduplicated) and sparse_shadow_integration_regressions_all_seven_invariants (sparse_va.rs:L3540-L3669, overlapping Shadow B observing A's active UAV without clobbering GPU bytes).

2. Unmapped sparse gaps (NULL mappings & partial sub-page trim)

  • Zero-commit gaps & NULL unmapping: Untouched pages inside a reserved window remain unmapped (0 physical tiles committed; Tier 2+ guarantees zero-reads and dropped writes); unmapping/teardown emits D3D12_TILE_RANGE_FLAG_NULL (sparse_va.rs:L1703, unmap_pages L1896, release_window L1936).
  • Partial 4 KiB unmapped sub-page safety on copy-back: copy_back_range (sparse_va.rs:L1397) trims read_into/put strictly to first_diff..=last_diff, so untouched unmapped/decommitted 4 KiB sub-pages inside a 64 KiB tile do not fail valid GPU merges.
  • Tests: run_sparse_gaps_suite (sparse_va.rs:L2904-L3005, sparse reserved window committing only touched pages while untouched gaps stay at 0 tiles and read back 0 on HW + WARP) and Regression 5b (sparse_va.rs:L3633-L3662, VirtualFree(MEM_DECOMMIT) on an untouched 4 KiB sub-page during copy-back).

3. Fence-gated tile retirement paired with let_go_idle view eviction

  • Fence-gated retirement: release_window (sparse_va.rs:L1936) queues NULL tile unmaps and defers orphaned physical tiles (pending_retire_tiles) and the reserved ID3D12Resource (pending_retire_resources) until flush() (L1846-L1849) pairs them with the ID3D12CommandQueue::Signal fence value (retired_tiles / retired_resources). reclaim (L1980) -> reclaim_completed (L762-L815) only returns tiles/heaps/resources once ID3D12Fence::GetCompletedValue() >= f (and wait_idle L1995 checks GetDeviceRemovedReason() before waiting).
  • View lifetime / let_go_idle coupling: SparseShadow intentionally holds no duplicate ID3D12Resource ref (Shadow::own_buffer_refs() == 2 at shadow.rs:L4068), so let_go_idle (shadow.rs:L3867-L3938) keeps descriptor-pinned views (refs > 2) resident while evicting idle unpinned views (refs == 2), triggering Drop for SparseShadow -> release_window -> fence-gated reclamation; LooseBacking::Sparse (shadow.rs:L6656) also constructs outside the global LOOSE lock and drops losers outside the lock.
  • Tests: run_reclamation_and_recycling_suite (sparse_va.rs:L3007-L3091, explicit tile unmap + fence completion + tile recycling + empty heap release), run_coalesced_upload_and_early_drop_suite (L3093), and Regression 1 (sparse_va.rs:L3510-L3527 & L3671-L3705, real LOOSE + let_go_idle_now_test proving pinned view stays resident while unpinned views evict and reclaim to live_windows == 0, committed_tiles == 0, heap_count == 0).
**@⁠Vladimir-Human** on GitHub · 2026-11-27 12:58 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7218912227) @⁠TaynanGT Here are the exact implementation and test entry points covering those three areas in `1ec48ce9`: ### 1. Overlapping windows sharing a canonical 64 KiB tile & cross-window UAV lifetime - **Canonical tile sharing & aliasing:** `crates/victory-gpu/src/sparse_va.rs` — `ensure_page` (`L517`) allocates at most one 64 KiB `ID3D12Heap` tile per canonical `title_page` and maps it into every overlapping window (`create_window` `L965` maps already-committed canonical pages into newly opened overlapping views); `flush` (`L1491`, barrier at `L1794`) emits `D3D12_RESOURCE_BARRIER_TYPE_ALIASING` after uploads and UAV activity. - **Cross-window active UAV tracking:** `sparse_va.rs` — `declare_uav_write` (`L1211`, single-read snapshot + subtraction of all already-active UAV ranges across overlapping windows), `finish_uav_ranges` (`L1316`), `has_active_uav_in` (`L1347`), paired with `crates/victory-gpu/src/shadow.rs` `writes_pending` / `writes_pending_in` (`L4621`-`L4639`), `stale_under_writes` / `merge_under_writes` (`L4652`-`L4715`), `update` (`L4961`, skips cross-window active UAV spans), `copy_back_done` (`L4530`), and the lock-free `has_active_uav()` settle gate in `crates/victory-gpu/src/host.rs` (`L6350`-`L6357`). - **Tests (HW Tier 4 & WARP Tier 3, `VICTORY_D3D12_DEBUG=1`):** `run_overlapping_views_suite` (`sparse_va.rs:L2722`-`L2902`, CPU upload + GPU compute UAV write observed bit-exact across 3 aliased windows with `committed_tiles` deduplicated) and `sparse_shadow_integration_regressions_all_seven_invariants` (`sparse_va.rs:L3540`-`L3669`, overlapping `Shadow` B observing A's active UAV without clobbering GPU bytes). ### 2. Unmapped sparse gaps (`NULL` mappings & partial sub-page trim) - **Zero-commit gaps & NULL unmapping:** Untouched pages inside a reserved window remain unmapped (`0` physical tiles committed; Tier 2+ guarantees zero-reads and dropped writes); unmapping/teardown emits `D3D12_TILE_RANGE_FLAG_NULL` (`sparse_va.rs:L1703`, `unmap_pages` `L1896`, `release_window` `L1936`). - **Partial 4 KiB unmapped sub-page safety on copy-back:** `copy_back_range` (`sparse_va.rs:L1397`) trims `read_into`/`put` strictly to `first_diff..=last_diff`, so untouched unmapped/decommitted 4 KiB sub-pages inside a 64 KiB tile do not fail valid GPU merges. - **Tests:** `run_sparse_gaps_suite` (`sparse_va.rs:L2904`-`L3005`, sparse reserved window committing only touched pages while untouched gaps stay at `0` tiles and read back `0` on HW + WARP) and Regression 5b (`sparse_va.rs:L3633`-`L3662`, `VirtualFree(MEM_DECOMMIT)` on an untouched 4 KiB sub-page during copy-back). ### 3. Fence-gated tile retirement paired with `let_go_idle` view eviction - **Fence-gated retirement:** `release_window` (`sparse_va.rs:L1936`) queues `NULL` tile unmaps and defers orphaned physical tiles (`pending_retire_tiles`) and the reserved `ID3D12Resource` (`pending_retire_resources`) until `flush()` (`L1846`-`L1849`) pairs them with the `ID3D12CommandQueue::Signal` fence value (`retired_tiles` / `retired_resources`). `reclaim` (`L1980`) -> `reclaim_completed` (`L762`-`L815`) only returns tiles/heaps/resources once `ID3D12Fence::GetCompletedValue() >= f` (and `wait_idle` `L1995` checks `GetDeviceRemovedReason()` before waiting). - **View lifetime / `let_go_idle` coupling:** `SparseShadow` intentionally holds no duplicate `ID3D12Resource` ref (`Shadow::own_buffer_refs() == 2` at `shadow.rs:L4068`), so `let_go_idle` (`shadow.rs:L3867`-`L3938`) keeps descriptor-pinned views (`refs > 2`) resident while evicting idle unpinned views (`refs == 2`), triggering `Drop for SparseShadow` -> `release_window` -> fence-gated reclamation; `LooseBacking::Sparse` (`shadow.rs:L6656`) also constructs outside the global `LOOSE` lock and drops losers outside the lock. - **Tests:** `run_reclamation_and_recycling_suite` (`sparse_va.rs:L3007`-`L3091`, explicit tile unmap + fence completion + tile recycling + empty heap release), `run_coalesced_upload_and_early_drop_suite` (`L3093`), and Regression 1 (`sparse_va.rs:L3510`-`L3527` & `L3671`-`L3705`, real `LOOSE` + `let_go_idle_now_test` proving pinned view stays resident while unpinned views evict and reclaim to `live_windows == 0, committed_tiles == 0, heap_count == 0`).
Author
Owner

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

@⁠Vladimir-Human The overlapping-window readback and active UAV check cover the sharing boundary. I’ll keep the NULL mapping and fence-retirement tests tied to this head. The next measurements should report committed tiles and host memory on the same route, with sparse windows as the only switch.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7219116169) @⁠Vladimir-Human The overlapping-window readback and active UAV check cover the sharing boundary. I’ll keep the NULL mapping and fence-retirement tests tied to this head. The next measurements should report committed tiles and host memory on the same route, with sparse windows as the only switch.
github-bot force-pushed github-bot/gh-260 from 1ec48ce9ee to b77ecacae4 2026-11-27 20:24:15 +00:00 Compare
Author
Owner

@⁠Aniseto on GitHub · 2026-11-28 09:55 UTC · original

Ran the sparse virtual page-table tests at b77ecac on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.

cargo test -p victory-gpu --lib sparse_va:: -- --test-threads=1
5 passed; 0 failed; 0 ignored; 0 measured; 561 filtered out      (exit 0)

All five tests pass, including the overlapping-alias coherence, untouched-gap and fence-safe reclamation cases. They are CPU-side tests of the opt-in VICTORY_SPARSE_WINDOWS=1 module; I did not enable the switch in a real session. The thread has reports on other NVIDIA cards but no RTX 5070 Ti.

Not tested: a title with VICTORY_SPARSE_WINDOWS=1, the shadow:: suite, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-28 09:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7237552625) Ran the sparse virtual page-table tests at `b77ecac` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build. ``` cargo test -p victory-gpu --lib sparse_va:: -- --test-threads=1 5 passed; 0 failed; 0 ignored; 0 measured; 561 filtered out (exit 0) ``` All five tests pass, including the overlapping-alias coherence, untouched-gap and fence-safe reclamation cases. They are CPU-side tests of the opt-in `VICTORY_SPARSE_WINDOWS=1` module; I did not enable the switch in a real session. The thread has reports on other NVIDIA cards but no RTX 5070 Ti. Not tested: a title with `VICTORY_SPARSE_WINDOWS=1`, the `shadow::` suite, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:23 UTC · original

Thanks for verifying the overlapping-alias, gap and fence reclamation cases on b77ecac. Sparse windows should remain opt-in until real-session correctness, memory pressure and frame time are compared.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7255084312) Thanks for verifying the overlapping-alias, gap and fence reclamation cases on b77ecac. Sparse windows should remain opt-in until real-session correctness, memory pressure and frame time are compared.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:14 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:14 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/260#issuecomment-7285944743) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.
github-bot closed this pull request 2026-11-30 17:20:52 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.