1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-22 16:54:27 +01:00

[d3d11] Add config option to disable Nvidia Reflex integration

This commit is contained in:
Philip Rebohle 2025-01-16 17:00:33 +01:00
parent f285bfaf39
commit ee70e07275
3 changed files with 12 additions and 0 deletions

View File

@ -312,6 +312,14 @@
# d3d11.enableContextLock = False # 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 # Exposes or hides support for driver command lists
# #
# Some games use the feature flag to decide whether to use deferred # Some games use the feature flag to decide whether to use deferred

View File

@ -27,6 +27,7 @@ namespace dxvk {
this->forceSampleRateShading = config.getOption<bool>("d3d11.forceSampleRateShading", false); this->forceSampleRateShading = config.getOption<bool>("d3d11.forceSampleRateShading", false);
this->disableMsaa = config.getOption<bool>("d3d11.disableMsaa", false); this->disableMsaa = config.getOption<bool>("d3d11.disableMsaa", false);
this->enableContextLock = config.getOption<bool>("d3d11.enableContextLock", false); this->enableContextLock = config.getOption<bool>("d3d11.enableContextLock", false);
this->enableReflex = config.getOption<bool>("d3d11.enableReflex", false);
this->deferSurfaceCreation = config.getOption<bool>("dxgi.deferSurfaceCreation", false); this->deferSurfaceCreation = config.getOption<bool>("dxgi.deferSurfaceCreation", false);
this->maxFrameLatency = config.getOption<int32_t>("dxgi.maxFrameLatency", 0); this->maxFrameLatency = config.getOption<int32_t>("dxgi.maxFrameLatency", 0);
this->exposeDriverCommandLists = config.getOption<bool>("d3d11.exposeDriverCommandLists", true); this->exposeDriverCommandLists = config.getOption<bool>("d3d11.exposeDriverCommandLists", true);

View File

@ -100,6 +100,9 @@ namespace dxvk {
/// race conditions. /// race conditions.
bool enableContextLock = false; bool enableContextLock = false;
/// Enable or disable Nvidia Reflex interop.
bool enableReflex = false;
/// Whether to expose the driver command list feature. Enabled by /// Whether to expose the driver command list feature. Enabled by
/// default and generally beneficial, but some games may assume that /// default and generally beneficial, but some games may assume that
/// this is not supported when running on an AMD GPU. /// this is not supported when running on an AMD GPU.