mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 00:29:58 -04:00
Count a frame's submissions atomically: several guest threads submit at once from the pause menu's first frame on.
With a lost count the frame's first submission could go without its wait for the GPU, which is there against frames drawn with the next frame's data. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -616,7 +616,7 @@ static void vk_be_program_release(const prog_t *p) { replay_drain(DR_PROG_RELEAS
|
||||
// the value returned is the one the replay will signal.
|
||||
static uint64_t vk_be_submit(const uint64_t *handles, int n) {
|
||||
if (!gfx_replay_async()) {
|
||||
vk_sub_in_frame = nvn_submits_in_frame; // the front end counts it up after the submit returns
|
||||
vk_sub_in_frame = __atomic_load_n(&nvn_submits_in_frame, __ATOMIC_RELAXED); // the front end counts it up after the submit returns
|
||||
return submit_sync(handles, n);
|
||||
}
|
||||
vk_sync_start();
|
||||
|
||||
Reference in New Issue
Block a user