texture: the spare detile pool trims under pressure #2633
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!2633
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2633"
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?
@sh3nw4ld on GitHub · 2026-11-29 15:15 UTC · original
sh3nw4ld:fix-spare-linear-trim→main· +180 −60 · 32 files · 6 commits · merged 2026-11-30 14:12 UTCWhat this fixes
The pressure sweep trimmed every sibling spare pool — uploads, chunks, read-backs, the send bar, the UAV spare — and the spare detile targets it did not touch:
SPARE_LINEARgrew toLINEAR_POOL_MOSTand never shrank, so up to 256 MiB of idle device-local bytes stayed committed while the texture queue refused uploads at the budget line. On an 8 GB card that is a quarter of a gigabyte the working set fights for; every committed byte of it is in the card'sCurrentUsage, and nothing credits it as free.The trim gives the pool back whole when the card's memory is under pressure (the buffers re-make on demand in
linear_buffer, their contents are whatever the last texture left);Dropkeeps filling it in ordinary times, as before.Tests
the_spare_detile_pool_trims_whole: a pooled detile target of the pool's own making goes in, the trim empties it (bytes and map). Needs a GPU, skips without one.cargo test -p victory-gpu --lib --locked the_spare_detile_pool: 1 passed, 0 failed.Environment
Windows 11, RTX 4060 Ti (8 GB), Rust 1.98.1 (pinned).
7db2eea742to62477e2cf0@dyshay on GitHub · 2026-11-29 15:40 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series X 1440p, and Series S with ray tracing, DLSS Quality). Frame times will follow here.62477e2cf0to999b9bb256999b9bb256todf09b4c52edf09b4c52eto8da1528d508da1528d50to308fe0ff72