aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-02-16 19:30:42 +1100
committerNicolas James <nj3ahxac@gmail.com>2026-02-16 19:30:42 +1100
commita64bf66a50bf628714bdf148e3136d1c549bea70 (patch)
treec794f45c32cf3613a54472de805367d3acdbfb8d /src/queue_context.hh
parent5cf3e65a3904a5be0f080cd675da63f190ca58d2 (diff)
subtract CPU time, WIP
Diffstat (limited to 'src/queue_context.hh')
-rw-r--r--src/queue_context.hh6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/queue_context.hh b/src/queue_context.hh
index 356de33..172683d 100644
--- a/src/queue_context.hh
+++ b/src/queue_context.hh
@@ -22,8 +22,6 @@ class QueueContext final : public Context {
const VkQueue queue;
const std::uint32_t queue_family_index;
- // I used to use these to signal when we could read timestamps until
- // I realised you could use hostQueryReset.
std::uint64_t semaphore_sequence = 0;
VkSemaphore semaphore;
@@ -64,11 +62,9 @@ class QueueContext final : public Context {
std::deque<std::unique_ptr<Frame>> in_flight_frames;
struct Timing {
- DeviceContext::Clock::time_point_t gpu_start;
DeviceContext::Clock::time_point_t gpu_end;
- DeviceContext::Clock::time_point_t::duration cpu_time;
- DeviceContext::Clock::time_point_t::duration gpu_time;
+ DeviceContext::Clock::time_point_t::duration gpu_time, cpu_time;
std::unique_ptr<Frame> frame;
};