mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 17:29:57 -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:
@@ -18,6 +18,10 @@ const OvNvState *ov_nv_state(void); // ov_gfx.c
|
||||
|
||||
// ---- window, vsync, focus (gfx_present.c and the window back end, gfx_wsys.h; vk_device.c). Host threads only; never run guest code.
|
||||
void gfx_window_start(void); // window thread, Vulkan device, swapchain; idempotent
|
||||
// NX2NAVI_GPU_TIMELINE=<frame> (vk_sync.c "frame timeline"): an event of the frames it records, at CPU time t (0: now)
|
||||
// with two values; gfx_tl_present counts the presented frames and writes the record to the log when it is complete.
|
||||
void gfx_tl_note(int kind, uint64_t t, uint64_t a, uint64_t b);
|
||||
void gfx_tl_present(void);
|
||||
void gfx_vsync_bind(uint64_t system_event); // nn::vi vsync event; signalled at 60 Hz
|
||||
uint64_t gfx_vsync_ticks(void); // ticks since start
|
||||
uint64_t gfx_vsync_time_ns(uint64_t tick); // kern_now_ns() time of a tick (pacing)
|
||||
|
||||
Reference in New Issue
Block a user