From 733955de0ae90de26fe98854a1debd6b80ccc27a Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Wed, 11 Mar 2026 10:32:26 +1100 Subject: Add LOW_LATENCY_LAYER_SLEEP_AFTER_PRESENT env as an explicit AL1 toggle --- src/device_context.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/device_context.cc') diff --git a/src/device_context.cc b/src/device_context.cc index 49b7808..97103de 100644 --- a/src/device_context.cc +++ b/src/device_context.cc @@ -134,9 +134,11 @@ void DeviceContext::notify_antilag_update(const VkAntiLagDataAMD& data) { return; } - if (this->antilag_mode == VK_ANTI_LAG_MODE_ON_AMD) { - this->sleep_in_input(); + if (this->antilag_mode != VK_ANTI_LAG_MODE_ON_AMD) { + return; } + + this->sleep_in_input(); } void DeviceContext::notify_queue_present(const QueueContext& queue) { -- cgit v1.2.3