From b8759422bc22127831e40d502d5b5767572605c9 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 1 Apr 2026 16:58:17 +1100 Subject: Fix AntiLagUpdateAMD race, reduce thread contention in both paths --- src/swapchain_monitor.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/swapchain_monitor.hh') 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 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); -- cgit v1.2.3