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/timestamp_pool.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/timestamp_pool.hh') diff --git a/src/timestamp_pool.hh b/src/timestamp_pool.hh index 809c6a4..767455a 100644 --- a/src/timestamp_pool.hh +++ b/src/timestamp_pool.hh @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -130,6 +131,15 @@ class TimestampPool final { // Blocks until the time is available. void await_start() const; void await_end() const; + + private: + std::optional + has_time_impl(const std::uint32_t offset) const; + + public: + // Checks if the time is available - doesn't block. + bool has_start() const; + bool has_end() const; }; private: -- cgit v1.2.3