mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 12:25:56 +00:00
Textures shared the default 256 MiB blocks with the mirrors and other buffers, and a block went back to the driver only once everything in it was gone. On the RX 9070 after a few minutes of roaming the field, 3 of 9 device-local blocks were 13-27% full, held by a hundred small textures and buffers each, and blocks held 0.8-1.4 GB more than their allocations; where device memory takes process commit, that commit backs nothing. Own-memory textures now go to a VMA pool with 64 MiB blocks (TOTK_TEX_BLOCK_MIB, 0 = the default pools). Images of a quarter block or more, images the driver wants a dedicated allocation for, and images the pool's memory type does not take get memory of their own; the requirements are read before the image is made, since VMA checks neither for a custom pool. The headroom thread keeps the pool's next block ahead like the default pools'. Same 10-minute route: 807 MiB of blocks beyond their allocations instead of 1037, most pool blocks 75-100% full, slow frames not up. Probes pass on v143. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>