aboutsummaryrefslogtreecommitdiff
path: root/src/layer_context.hh
diff options
context:
space:
mode:
authorNicolas James <nj3ahxac@gmail.com>2026-03-24 11:00:30 +1100
committerNicolas James <nj3ahxac@gmail.com>2026-03-24 11:00:30 +1100
commite270ee282a776956d666230dc924941c50b1ac65 (patch)
tree25381ddebf43bf80d9288d872dc77a248449b0a0 /src/layer_context.hh
parent09f27da54e12343b8c639186b6b2c61253f2a99a (diff)
Add nvidia spoofing for GetPhysicalDeviceSurfaceCapabilities2KHR, don't advertise AntiLag when doing so
Diffstat (limited to 'src/layer_context.hh')
-rw-r--r--src/layer_context.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layer_context.hh b/src/layer_context.hh
index 316d540..da13dc6 100644
--- a/src/layer_context.hh
+++ b/src/layer_context.hh
@@ -53,11 +53,17 @@ class LayerContext final : public Context {
static constexpr auto SLEEP_AFTER_PRESENT_ENV =
"LOW_LATENCY_LAYER_SLEEP_AFTER_PRESENT";
+ // If this is not null and set to exactly "1", then VK_NV_LOW_LATENCY2
+ // should be provided instead of VK_AMD_anti_lag.
+ static constexpr auto SPOOF_NVIDIA_ENV =
+ "LOW_LATENCY_LAYER_SPOOF_NV_LOWLATENCY2";
+
public:
std::mutex mutex;
std::unordered_map<void*, std::shared_ptr<Context>> contexts;
bool is_antilag_1_enabled = false;
+ bool should_spoof_nvidia = false;
public:
LayerContext();