texture: the spare detile pool trims under pressure #2633
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by sh3nw4ld on 2026-11-29T15:15:30Z.
What 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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T15:40:08Z.
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.