aboutsummaryrefslogtreecommitdiff
path: root/src/swapchain_monitor.hh
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-01 16:58:17 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-04-01 16:58:17 +1100
commitb8759422bc22127831e40d502d5b5767572605c9 (patch)
tree6261453df4fea01922aeb22f58131f10c3bc8a3e /src/swapchain_monitor.hh
parent43ddb16f8c30c3a269b1ff80162b4225b051cbb6 (diff)
Fix AntiLagUpdateAMD race, reduce thread contention in both paths
Diffstat (limited to 'src/swapchain_monitor.hh')
-rw-r--r--src/swapchain_monitor.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/swapchain_monitor.hh b/src/swapchain_monitor.hh
index 4fed3f8..e8603b5 100644
--- a/src/swapchain_monitor.hh
+++ b/src/swapchain_monitor.hh
@@ -92,8 +92,12 @@ class ReflexSwapchainMonitor final : public SwapchainMonitor {
std::unique_ptr<QueueContext::Submissions> submissions) override;
};
-// Much simpler synchronous waiting with no thread requirement.
+// Much simpler synchronous waiting without another monitor thread - still need
+// to synchronise across threads however.
class AntiLagSwapchainMonitor final : public SwapchainMonitor {
+ private:
+ std::mutex mutex;
+
public:
AntiLagSwapchainMonitor(const DeviceContext& device,
const bool was_low_latency_requested);