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

Manually merged
github merged 1 commit from github-bot/gh-434 into gh-pr/434/base 2026-12-04 15:46:09 +00:00 AGit
Owner

@⁠Androtim on GitHub · 2026-12-04 15:31 UTC · original
Androtim:fix/high-vram-rt-buffer-caps → main · +26 −10 · 2 files · 1 commits · merged 2026-12-04 15:43 UTC

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
**@⁠Androtim** on GitHub · 2026-12-04 15:31 UTC · [original](https://github.com/Androtim/MiniVI/pull/434) `Androtim:fix/high-vram-rt-buffer-caps` → `main` · +26 −10 · 2 files · 1 commits · merged 2026-12-04 15:43 UTC ## 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 15:35:02 +00:00
github-bot changed target branch from main to gh-pr/434/base 2026-12-04 15:46:06 +00:00
github manually merged commit e11068792c into gh-pr/434/base 2026-12-04 15:46:09 +00:00
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!434
No description provided.