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.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/frame_span.cc') diff --git a/src/frame_span.cc b/src/frame_span.cc index 732d6f3..8764aa1 100644 --- a/src/frame_span.cc +++ b/src/frame_span.cc @@ -21,4 +21,11 @@ void FrameSpan::await_completed() const { this->head_handle->await_end(); } +bool FrameSpan::has_completed() const { + if (this->tail_handle) { + return this->tail_handle->has_end(); + } + return this->head_handle->has_end(); +} + } // namespace low_latency \ No newline at end of file -- cgit v1.2.3