Pool: empty texture blocks capped by the card's budget, behind VICTORY_SPARE_SCALE (#756) #1658
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1658
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1658"
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?
@xiepeixuan on GitHub · 2026-11-28 23:07 UTC · original
xiepeixuan:review/784-rebase→main· +89 −3 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCRefs #756
Replaces #784, closed by the owner for conflicts; rebased on
d4b5d517.What it changes
VICTORY_SPARE_SCALEis off by default. WithVICTORY_SPARE_SCALE=1, the number of empty texture blocks is capped atmin(limit, max(budget/32/BLOCK, ripe target, 8 staging blocks), 64). When normal retention is allowed, the default 12-block ripe target means up to 768 MiB in empty texture blocks on 8–24 GiB budgets instead of up to 4 GiB.The cap is applied after main’s existing host-pressure choice, so pressure can still trim further. The ripe target and staging, upload, and shared pool retention are unchanged.
texture_scaling_does_not_trim_more_staging_or_buffer_blocksexercises the shared allocation-time reclaim path: the texture pool trims to the scaled cap, while the staging and upload/shared ceilings do not change.How it was tested
mainatd4b5d517: 21 passed, 0 failed, 2 ignored (baseline job).674be5e4: 23 passed, 0 failed, 2 ignored (fork job).cargo testpassed for the crates it touches: Yes —cargo test -p victory-gpu --lib pool.Checked for overlap
AI-assisted (Codex). Not run in the game here. Needs a run on an 8-12 GB card with VICTORY_SPARE_SCALE=1 and =0.