mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
mirror_create refused a pool whose mirror did not fit under seven eighths of the VRAM budget. It first evicts idle mirrors and asks idle textures for room, but on a 6 GiB card a loaded area's textures in use pass the budget by themselves, so neither helps and the pools stay imported: the GPU then reads vertices, indices and storage over PCIe at every draw. Two reports from RTX 3060 Laptop cards (6 GiB, a budget of about 4.7 GiB) measured 70 to 250 ms of GPU time a frame and 5 to 13 fps in that state. Now a mirror is made although the check fails while the mirrors together stay within half the budget; the textures are still asked for the room, and past that share a pool is refused as before. A mirror the driver cannot keep in VRAM is paged to system memory, where the imported pool already is, so it does not read slower than its pool. Measured with the budget capped at 4,730 MiB on a 32 GiB card (1080p window, DLSS Balanced, no frame generation, standing in Hyrule Field): before, 4 pools of 244.6 MiB stay imported, the largest pool among them (244.4 MiB), with 634 MiB mirrored; after, none stay imported and 878 MiB are mirrored, in two runs. The area still needs 5.6 to 6.3 GiB there, 3.9 GiB of it textures, so a 6 GiB card stays over its budget: this ends the buffer starvation, not the overflow. Not run on a 6 GiB card. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
205 KiB
205 KiB