mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 18:09:58 -04:00
Under the perf trace, name the guest threads that submit and present on each queue, and log a submit or present that starts while another runs.
The synchronous replay's front end takes no lock of its own and relies on one such call at a time; a run now shows whether that holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -864,6 +864,7 @@ NVN_API(nvnQueuePresentTexture) {
|
||||
NVN_BLOCKING();
|
||||
if (o->magic != NVN_WIN_MAGIC || idx < 0 || idx >= o->ntex || idx >= 4 || !o->tex[idx])
|
||||
rt_fatal("nvn: QueuePresentTexture of image %d on window %p", idx, (void *)o);
|
||||
nvn_call_note(1, (uintptr_t)arg_p(c, 0), 1);
|
||||
o->presents++;
|
||||
nvn_submits_in_frame = 0;
|
||||
const tex_t *t = (const tex_t *)o->tex[idx];
|
||||
@@ -877,4 +878,5 @@ NVN_API(nvnQueuePresentTexture) {
|
||||
last_present_fence = nvn_fence_last();
|
||||
frame_step_present(slot, o->interval); // frame_rate.c: the real-time step follows the display times
|
||||
rt_frame_presented(t, o->presents);
|
||||
nvn_call_note(1, (uintptr_t)arg_p(c, 0), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user