mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 09:19:58 -04:00
An RX 580 (8 GiB, AMD 23.10) shows its memory as a 6 GiB device-local heap and a 2 GiB device-local, host-visible one, and Windows granted the game 5.1 GiB of the first. A save load put 5.6 GiB of textures, VRAM mirrors and pools into the first heap while the second held 69 MiB, and the next submit failed with VK_ERROR_OUT_OF_DEVICE_MEMORY; budget flags on the texture allocations alone did not change that. VMA now gets heap limits (pHeapSizeLimit) when the device has two or more device-local heaps: each heap's budget at device creation less a tenth (at least 256 MiB) for memory VMA does not see. Every allocation past a limit goes to the next memory type that allows it. NX2NAVI_VRAM_HEAP_LIMIT: auto, 0 (off) or MiB for the largest heap. A physical pool that finds no video memory left takes any memory type it may live in instead of failing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 KiB
48 KiB