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/frame_span.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/frame_span.hh') diff --git a/src/frame_span.hh b/src/frame_span.hh index 5220702..638554b 100644 --- a/src/frame_span.hh +++ b/src/frame_span.hh @@ -28,6 +28,8 @@ class FrameSpan { void update(std::shared_ptr handle); public: + // Check if GPU work has completed without hanging. + bool has_completed() const; // Wait for for GPU work to complete. void await_completed() const; }; -- cgit v1.2.3