From ee70e072754ab8e12468f64337051a560c0b89f7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 16 Jan 2025 17:00:33 +0100 Subject: [PATCH] [d3d11] Add config option to disable Nvidia Reflex integration --- dxvk.conf | 8 ++++++++ src/d3d11/d3d11_options.cpp | 1 + src/d3d11/d3d11_options.h | 3 +++ 3 files changed, 12 insertions(+) diff --git a/dxvk.conf b/dxvk.conf index d8ff2989a..4bc56d30e 100644 --- a/dxvk.conf +++ b/dxvk.conf @@ -312,6 +312,14 @@ # d3d11.enableContextLock = False +# Enables Nvidia Reflex interop through dxvk-nvapi in supported games. +# This feature is considered experimental and thus disabled by default. +# +# Supported values: True, False + +# d3d11.enableReflex = False + + # Exposes or hides support for driver command lists # # Some games use the feature flag to decide whether to use deferred diff --git a/src/d3d11/d3d11_options.cpp b/src/d3d11/d3d11_options.cpp index da8e2ca55..2264eb5d3 100644 --- a/src/d3d11/d3d11_options.cpp +++ b/src/d3d11/d3d11_options.cpp @@ -27,6 +27,7 @@ namespace dxvk { this->forceSampleRateShading = config.getOption("d3d11.forceSampleRateShading", false); this->disableMsaa = config.getOption("d3d11.disableMsaa", false); this->enableContextLock = config.getOption("d3d11.enableContextLock", false); + this->enableReflex = config.getOption("d3d11.enableReflex", false); this->deferSurfaceCreation = config.getOption("dxgi.deferSurfaceCreation", false); this->maxFrameLatency = config.getOption("dxgi.maxFrameLatency", 0); this->exposeDriverCommandLists = config.getOption("d3d11.exposeDriverCommandLists", true); diff --git a/src/d3d11/d3d11_options.h b/src/d3d11/d3d11_options.h index f41979d56..d3aa27945 100644 --- a/src/d3d11/d3d11_options.h +++ b/src/d3d11/d3d11_options.h @@ -100,6 +100,9 @@ namespace dxvk { /// race conditions. bool enableContextLock = false; + /// Enable or disable Nvidia Reflex interop. + bool enableReflex = false; + /// Whether to expose the driver command list feature. Enabled by /// default and generally beneficial, but some games may assume that /// this is not supported when running on an AMD GPU.