diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-03-24 11:00:30 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-03-24 11:00:30 +1100 |
| commit | e270ee282a776956d666230dc924941c50b1ac65 (patch) | |
| tree | 25381ddebf43bf80d9288d872dc77a248449b0a0 /src/layer_context.hh | |
| parent | 09f27da54e12343b8c639186b6b2c61253f2a99a (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.hh | 6 |
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(); |
