aboutsummaryrefslogtreecommitdiff
path: root/src/strategies/low_latency2/queue_strategy.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-04-08 12:55:29 +1000
committerNicolas James <nj3ahxac@gmail.com>2026-04-08 12:55:29 +1000
commit453d5b0052bd17ed74d47570ffff403ffcd9ebb3 (patch)
tree14ab71a5ff27d5485faea061f6e8fe26c0e19640 /src/strategies/low_latency2/queue_strategy.hh
parenteb9719cc8b9a308654ccd2c3bce8a7047b6e2a1a (diff)
Fix refactor latency regression for VK_NV_LowLatency2 by checking if work has already completed
Diffstat (limited to 'src/strategies/low_latency2/queue_strategy.hh')
-rw-r--r--src/strategies/low_latency2/queue_strategy.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/strategies/low_latency2/queue_strategy.hh b/src/strategies/low_latency2/queue_strategy.hh
index 6d41027..2a03c91 100644
--- a/src/strategies/low_latency2/queue_strategy.hh
+++ b/src/strategies/low_latency2/queue_strategy.hh
@@ -16,6 +16,9 @@ class QueueContext;
class LowLatency2QueueStrategy final : public QueueStrategy {
public:
+ // It's possible that our tracking for present_ids grows without a limit if
+ // present isn't called. To guard against this, we store the last unique
+ // MAX_TRACKED_PRESENTS and use it to evict stale submissions.
static constexpr auto MAX_TRACKED_PRESENTS = 50;
// Mapping of present_id's to submissions. Grabbed later by the device