mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
On an RX 580 the second device-local heap (2 GiB) takes what the first has no room for. On a GPU with one device-local heap (an RTX 3050 Laptop, 4 GiB, 16 GiB of RAM) the budget wrapper and the texture placement sent everything past the heap's reserve to system memory instead: 4096 and more texture images and every other allocation, held in the process's commit (21 GiB). The system's commit ran out (31730 of 32023 MB), host memory imports failed, a pool was left without a GPU buffer and the GPU wrote through its address: device lost. Now an allocation leaves out a full heap only when another device-local heap has room, and a texture's second step allocates as before, past the budget, where the driver keeps it in video memory or moves it out itself, and NX2navi's own VRAM pressure drops textures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
252 KiB
252 KiB