aboutsummaryrefslogtreecommitdiff
path: root/src/timestamp_pool.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-04-08 00:56:40 +1000
committerNicolas James <nj3ahxac@gmail.com>2026-04-08 00:56:40 +1000
commiteb9719cc8b9a308654ccd2c3bce8a7047b6e2a1a (patch)
tree5e72b419d3dc900a35921be5e551b17552251769 /src/timestamp_pool.hh
parent69764a869d99e9abd0fbe10c2773d3556d7f35e8 (diff)
Refactor storing submissions into FrameSpan class, reduce AntiLag thread contention
Diffstat (limited to 'src/timestamp_pool.hh')
-rw-r--r--src/timestamp_pool.hh12
1 files changed, 5 insertions, 7 deletions
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 <unordered_set>
#include <vector>
-#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: