Files
6gbvram---16gb-ram/crates/victory-gpu
1mosce ecfa1a6aaf Pool: what the texture blocks hold, in the log every five seconds (VICTORY_POOL_STATS=1, off by default)
One line of the texture pool's state: the blocks and how full they are (in quarters), the bytes free now and in how many ranges, the largest of those, the pieces that rest, the live textures by the size of their piece, and what the small ones would hold at multiples of 4 KiB (VICTORY_POOL_SMALL).

Nothing about how pieces are cut changes. Without the switch a texture costs two counters when it is made and when it goes; with it, one more GetResourceAllocationInfo for each texture made.

What it showed on an RTX 4070 Laptop (8 GiB), Series S profile, five minutes into a run with VICTORY_POOL_SMALL=0: 57 blocks (3,648 MB) for 2,387 MB of textures, 1,260 MB of them free in 1,655 ranges, 25 blocks less than half full and none empty; 13,363 of 15,836 textures in pieces of 64 KiB, and 13,748 that would hold 222 MB at multiples of 4 KiB where they held 907 MB. With VICTORY_POOL_SMALL=1 the next run of six minutes held 20,000 to 38,000 textures in 40 to 45 blocks, with no device loss.

Tests: the census over a pool (free, resting, how full), and the size classes.
(cherry picked from commit eb8e7075cf51e15d29ba841493544abb5292fbbc)
2026-11-27 17:51:24 -08:00
..