From eb9719cc8b9a308654ccd2c3bce8a7047b6e2a1a Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 8 Apr 2026 00:56:40 +1000 Subject: Refactor storing submissions into FrameSpan class, reduce AntiLag thread contention --- src/timestamp_pool.hh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/timestamp_pool.hh') diff --git a/src/timestamp_pool.hh b/src/timestamp_pool.hh index 9044864..809c6a4 100644 --- a/src/timestamp_pool.hh +++ b/src/timestamp_pool.hh @@ -14,8 +14,6 @@ #include #include -#include "device_clock.hh" - namespace low_latency { class QueueContext; @@ -125,13 +123,13 @@ class TimestampPool final { const VkCommandBuffer& get_end_buffer() const; private: - DeviceClock::time_point_t - await_time_impl(const std::uint32_t offset) const; + // Returns the device ticks. FIXME wrap device ticks. + std::uint64_t await_time_impl(const std::uint32_t offset) const; public: - // Waits until the time is available and returns it. - DeviceClock::time_point_t await_start_time() const; - DeviceClock::time_point_t await_end_time() const; + // Blocks until the time is available. + void await_start() const; + void await_end() const; }; private: -- cgit v1.2.3