aboutsummaryrefslogtreecommitdiff
path: root/src/device_context.cc
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-03-11 10:32:26 +1100
committerNicolas James <nj3ahxac@gmail.com>2026-03-11 10:32:26 +1100
commit733955de0ae90de26fe98854a1debd6b80ccc27a (patch)
tree6424a26bb8f5434d1ad6952f16ba6a79b3b5991f /src/device_context.cc
parentf10074d9897850b9b746ff8d8e0b2dc4af24f3ff (diff)
Add LOW_LATENCY_LAYER_SLEEP_AFTER_PRESENT env as an explicit AL1 toggle
Diffstat (limited to 'src/device_context.cc')
-rw-r--r--src/device_context.cc6
1 files changed, 4 insertions, 2 deletions
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) {