fix(play,hwrt): stop clamping card buffers to 512 MiB on high-VRAM RT GPUs #434

Merged
Androtim merged 1 commit from upstream-pr/434 into main 2026-12-04 15:43:41 +00:00
Androtim commented 2026-12-04 15:31:57 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T15:31:57Z.


Summary

Fixes a regression on high-VRAM (>= 12 GiB) GPUs with hardware/software RT enabled where pps/victory/src/play.rs unconditionally stamped VICTORY_CARD_BUFFERS_MB=512 and VICTORY_RT_MEMORY_MB=1024, overriding shadow.rs's VRAM-tiered
esolve_card_limits() defaults (2048 MiB on 16 GiB, up to 8192 MiB on >= 20 GiB) and spilling hot vertex/index/constant/descriptor buffers into PCIe shared system RAM.

Changes

  • pps/victory/src/play.rs (!low_vram branch):
    • Remove unconditional VICTORY_CARD_BUFFERS_MB=512 when
      t_on so shadow.rs's
      esolve_card_limits() manages buffer VRAM by adapter tier.
    • Scope VICTORY_RT_MEMORY_MB=1024 and VICTORY_BVH_FAULTS_ALL=8192 to mid-VRAM GPUs (<= 13 GiB); leave both unset on >= 14 GiB GPUs so memory.rs uses its natural VRAM-scaled defaults.
    • Keep the 8 GiB low_vram path (512 MiB card buffers, 768 MiB RT memory, 8192 fault pages) 100% unchanged.
    • Update unit tests to cover 8 GiB, 12 GiB, and 16 GiB+ RT defaults and explicit --set overrides.
  • crates/victory-gpu/src/hwrt/budget.rs:
    • Raise BLAS_BUDGET_DEFAULT_HIGH (13–16 GiB tier) from 1024 MiB to 1536 MiB to reduce BLAS eviction churn on 16 GiB cards, keeping LOW (512 MiB), MID (768 MiB), and ULTRA (2048 MiB) unchanged.
    • Update doc comments and unit tests accordingly.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory -- play — 23 passed, 0 failed
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu -- budget — 40 passed, 0 failed
  • cargo +1.98.1-x86_64-pc-windows-gnu xtask policy — 368 files ok
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings — clean
<!-- greyfinch-sync:Androtim/MiniVI:issue:5649325638 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/434). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-04T15:31:57Z. --- ## Summary Fixes a regression on high-VRAM (>= 12 GiB) GPUs with hardware/software RT enabled where pps/victory/src/play.rs unconditionally stamped VICTORY_CARD_BUFFERS_MB=512 and VICTORY_RT_MEMORY_MB=1024, overriding shadow.rs's VRAM-tiered esolve_card_limits() defaults (2048 MiB on 16 GiB, up to 8192 MiB on >= 20 GiB) and spilling hot vertex/index/constant/descriptor buffers into PCIe shared system RAM. ### Changes - **pps/victory/src/play.rs (!low_vram branch):** - Remove unconditional VICTORY_CARD_BUFFERS_MB=512 when t_on so shadow.rs's esolve_card_limits() manages buffer VRAM by adapter tier. - Scope VICTORY_RT_MEMORY_MB=1024 and VICTORY_BVH_FAULTS_ALL=8192 to mid-VRAM GPUs (<= 13 GiB); leave both unset on >= 14 GiB GPUs so memory.rs uses its natural VRAM-scaled defaults. - Keep the 8 GiB low_vram path (512 MiB card buffers, 768 MiB RT memory, 8192 fault pages) 100% unchanged. - Update unit tests to cover 8 GiB, 12 GiB, and 16 GiB+ RT defaults and explicit --set overrides. - **crates/victory-gpu/src/hwrt/budget.rs:** - Raise BLAS_BUDGET_DEFAULT_HIGH (13–16 GiB tier) from 1024 MiB to 1536 MiB to reduce BLAS eviction churn on 16 GiB cards, keeping LOW (512 MiB), MID (768 MiB), and ULTRA (2048 MiB) unchanged. - Update doc comments and unit tests accordingly. ## Verification - cargo +1.98.1-x86_64-pc-windows-gnu test -p victory -- play — 23 passed, 0 failed - cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu -- budget — 40 passed, 0 failed - cargo +1.98.1-x86_64-pc-windows-gnu xtask policy — 368 files ok - cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings — clean
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!434
No description provided.