gpu: scale the page budgets with the card's memory #78
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!78
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@SovietBearz0r on GitHub · 2026-12-05 00:11 UTC · original
SovietBearz0r:vram-headroom→main· +115 −9 · 1 files · 1 commits · merged 2026-12-05 00:27 UTCScales the address-indexed memory budgets with the card, ported from MiniVI's
most_pages_for/spare_pages_for/fault_pages_for.Before, three page budgets were fixed at a big card's limits; on a small card that is memory the title's ray-traced structures take from everything else:
Overrides:
VICTORY_RT_MEMORY_MB(256–3,072 MiB) for the held pages,VICTORY_BVH_FAULTS_ALL(pages) for the fault budget. Above 9 GiB the fault budget is now 512 MiB rather than 128 MiB, as in the fork — the switch takes it back if unwanted.The render-target side needed nothing:
resource::targets_room_keptalready keeps at most a quarter of the card's budget for render targets and settles it down (targets_kept), which is the other half of MiniVI's change.Verified
cargo test -p victory-gpu --lib -- --test-threads=1: 700 passed, 21 ignored.-D warningsclean forvictory-gpuandvictory;cargo xtask policyok.origin/main.Not exercised in-game: the machine here has a 16 GiB card, whose tiers are the old limits (bar the fault budget); small-card behaviour is unit-tested.
ac5c8e16b4to6261a707b7@ReTerryDavis on GitHub · 2026-12-05 00:27 UTC · original
Fixed two literal
\nescapes in doc comments incrates/victory-gpu/src/memory.rs, verified withcargo clippy -p victory-gpu -p victory --all-targets(default +--all-features),cargo test -p victory-gpu --lib headroom_tests, andcargo run -p xtask -- policy. Merging now — thanks!