mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 07:31:06 -04:00
Once the frame's creation time is spent, pool_refill skips a slot it left earlier in the frame, and pool_sync_entries may return before the walk. Such a slot keeps its old view in the current set with nothing in the change log, so the takes after it do not carry the change into the other sets. vk_pool_takes counted those takes all the same, and at about six submissions a frame, more than VK_POOL_SETS of them could pass within one frame while a retired texture's slot was skipped every time. retire_sweep would then free the image while every set still named it. A take now counts only when its sync left no slot behind (PL.retry clear): after it, every slot change made before it is in that set and in the log, and the takes after it bring it into the others. A sealed second take inside one submission still goes uncounted, which only delays the free. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 5cd431f792e00ca3b9a03657cd4aab64fc38dae7)
182 KiB
182 KiB