mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 17:59:58 -04:00
Replay workers take their occlusion query slots in the order of the stream.
The chunks of a parallel group took query slots from the ring as they recorded, so the slots of the group's chunks interleaved. The completion thread reads and resets slots in runs that follow the ring, and with interleaved slots it made four times the result calls and a reset per slot: the wait after a frame's first submission ended 3.5 ms after the GPU had run it instead of 0.6 ms, and the replay time the workers saved went into that wait (44 fps with 3 workers as without). The front pass now gives each chunk a block of slots, as many as its draws that count samples and render, in the order of the stream; a segment's slots are taken in ring order. Standing in Hyrule Field, 3 workers: 49.8 fps against 43.7 with the workers off. NX2NAVI_GPU_TIMELINE=<frame> writes four frames from that present on to the log: each replay, each timed part's submit and GPU run, the waits for the GPU and the workers' groups, so a run shows whether the GPU waits for the replay, a wait, or the CPU behind one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -164,7 +164,11 @@ void vk_exec_draw_group_begin(VkExec *ex);
|
||||
void vk_exec_xfer_group(int on);
|
||||
int vk_exec_xfer_front(VkExec *fx, uint32_t op, const void *payload);
|
||||
uint64_t vk_exec_xfer_chunk_state(void);
|
||||
void vk_exec_xfer_worker(int on, const uint8_t *cond, uint32_t ncond, uint64_t state);
|
||||
void vk_exec_xfer_worker(int on, const uint8_t *cond, uint32_t ncond, uint64_t state, uint32_t slot0, uint32_t nslots);
|
||||
// The front pass: whether a draw here counts samples (a query slot), and n slots of the ring in the order of the stream
|
||||
// for one chunk (the first is returned; vk_exec_xfer_worker hands them to the chunk's worker).
|
||||
int vk_exec_xfer_counting(void);
|
||||
uint32_t vk_exec_xfer_slots(uint32_t n);
|
||||
// vk_exec_draw.c: forget what the command buffer being recorded has bound (pipeline, sets, dynamic state, vertex
|
||||
// buffers): the replay continues in a new one (vk_sync_split).
|
||||
void vk_exec_draw_new_cb(void);
|
||||
|
||||
Reference in New Issue
Block a user