mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 15:19:58 -04:00
present_image's 5 s wait for the slot's fence passed its result to nothing but a "present fence wait timed out" line. A lost device was reported as a timeout, and since a lost device's wait returns at once, the line repeated at the game's present rate until another thread noticed the loss. A GPU hung but not lost repeated the line every 5 s with no cap. The result now goes to vk_device_lost_check first. The line says whether the wait timed out or failed, with its code and count, for the first 8 times and at each doubling. An acquire answering an error other than OUT_OF_DATE (VK_ERROR_SURFACE_LOST_KHR, say) skipped the frame without a word. Each such code is now logged once. Making the surface again would be presentation and device work and is left alone. The capture path waited for the slot's fence and then read the read-back buffer whatever the wait returned: save_capture and grab_deliver could copy a frame the GPU had not finished. A failed wait now goes to vk_device_lost_check, marks no capture valid, and ends a pending grab with no pixels, as the no-buffer path does. Not reproduced before the change: the fresh logs have no such line. Checks that passed: pass_cc_check on gfx_present.c, no new -Wall -Wextra warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
104 KiB
104 KiB