[pr-feature] Limit speculative texture heaps under low local budget (opt-in) #5
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5"
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 cocainebunnylaboratories/cblvictoryvi. Originally posted by Tristan1019-user on 2026-11-29T16:38:06Z.
What it changes
Opt-in
VICTORY_HEADROOM_SPARES=1: limit speculative empty texture heaps when the local DXGI process budget is getting tight. Below or at 2,560 MiB headroom, keep at most two existing empty texture heaps and at most one ahead. Exit the mode above 3,072 MiB so a brief crossing does not repeatedly drain and refill the pool. An unavailable budget does not fabricate a recovery. Required allocations, live pieces, retirement order, staging, texture resolution and the default behavior are unchanged.How it was tested
The pool unit tests include a budget hysteresis check and a retirement/required-allocation check. The latter keeps a live and a resting piece while sweeping empty heaps, then makes a full-size demand allocation and verifies neither occupied range is reused. This is a controlled allocator test, not evidence that gameplay FPS improved or that the same number of heaps will be empty in a real scene. This policy cannot recover space trapped inside partially occupied heaps.
Pull request closed