mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 23:59:59 -04:00
vk_dlaa.c pb_images noted the present count in PB.used and then, for a new picture size, pb_destroy cleared the whole struct with the old images, PB.used with it. The new images were made with PB.used 0, so at the next present idle_release took them for 600 presents unused (once the run was 600 presents old) and destroyed them without a wait for the GPU, while the frame that had just drawn into them could still be in flight; the frame after made them again. With dlss_prebloom = 1 (off by default) that happened at every change of the picture's size, with the log line "prebloom: the picture-size images went unused for 600 presents: freed" right after it. PB.used is now set again once the new images are made. Not reproduced before the change (found by reading the code). Every runtime file compiles, vk_dlaa.c with -Wall -Wextra and no warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
214 KiB
214 KiB