From 453d5b0052bd17ed74d47570ffff403ffcd9ebb3 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 8 Apr 2026 12:55:29 +1000 Subject: Fix refactor latency regression for VK_NV_LowLatency2 by checking if work has already completed --- src/strategies/low_latency2/swapchain_monitor.hh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/strategies/low_latency2/swapchain_monitor.hh') diff --git a/src/strategies/low_latency2/swapchain_monitor.hh b/src/strategies/low_latency2/swapchain_monitor.hh index 837f8e4..a5f8362 100644 --- a/src/strategies/low_latency2/swapchain_monitor.hh +++ b/src/strategies/low_latency2/swapchain_monitor.hh @@ -26,16 +26,13 @@ class SwapchainMonitor final { void signal(const DeviceContext& device) const; }; - // An empty vector here represents our 'no work' state. std::vector> pending_frame_spans{}; - // A pairing of semaphore -> submissions. - // If the Submissions completes then signal the bundled semaphore. - struct SemaphoreSpans { + struct PendingSignal { WakeupSemaphore wakeup_semaphore{}; std::vector> frame_spans{}; }; - std::optional semaphore_spans{}; + std::deque pending_signals{}; protected: const DeviceContext& device; -- cgit v1.2.3