mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
pending_draws (vk_exec_draw.c) counts the draws a frame left out because their shader or pipeline was still building; vk_backend.c frame_hold takes it at the present to hold such a frame back. The comment said both happen on the replay thread, which is true only with the replay on its own thread. With the replay on the submitting threads, draw_skipped adds on the thread holding the submission lock (and its parallel chunks) while vk_exec_pending_draws_take reads and clears it on the presenting thread, so a plain ++ and a read-then-clear could lose a count: a frame missing draws shown instead of held, or the next frame held for nothing. The add, the take (an exchange) and the read that skips a link wait are atomics now. Not reproduced before the change. Checks that passed: pass_cc_check of vk_exec_draw.c with no new -Wall -Wextra warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
435 KiB
435 KiB