mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 11:49:59 -04:00
A staging buffer, a transient buffer of the replay or a descriptor pool that the driver refuses for memory used to end the game at once. Now the buffers kept for reuse go back to the driver first: the staging cache, the staging arena's free chunks, the write-back snapshot pool and the headroom's spare blocks (no new spare block for 30 s after that), and the allocation is tried once more; only a second refusal ends the game. On integrated GPUs the device-local heap is the machine's RAM and fills before the commit checks see anything: staging buffers of 11 KiB to 16 MiB refused there ended the game in Hyrule Field and on the first scene of play (#465, #567). NX2NAVI_STAGING_FAIL_AT=n (diagnostics) takes the n-th staging buffer as refused once, to test the path. Check: a Kakariko run with NX2NAVI_STAGING_FAIL_AT=300 logged "staging buffer of 524288 bytes refused (-2): 348.2 MiB of kept buffers and spare blocks given back, made at the second try" and played on to the end of its script. The transient buffer and descriptor pool paths call the same give-back and were not forced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
250 KiB
250 KiB