From 0f9245ff330f44551b3310d939f17926e9eb7446 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 13 Jan 2025 23:56:37 +0100 Subject: [PATCH] [d3d9,d3d11] Remove numBackBuffers option Useless. --- dxvk.conf | 15 +++------------ src/d3d11/d3d11_options.cpp | 1 - src/d3d11/d3d11_options.h | 4 ---- src/d3d9/d3d9_options.cpp | 1 - src/d3d9/d3d9_options.h | 4 ---- 5 files changed, 3 insertions(+), 22 deletions(-) diff --git a/dxvk.conf b/dxvk.conf index 68d51a46c..d8ff2989a 100644 --- a/dxvk.conf +++ b/dxvk.conf @@ -140,15 +140,6 @@ # dxgi.maxSharedMemory = 0 -# Override back buffer count for the Vulkan swap chain. -# Setting this to 0 or less will have no effect. -# -# Supported values: Any number greater than or equal to 2. - -# dxgi.numBackBuffers = 0 -# d3d9.numBackBuffers = 0 - - # Overrides synchronization interval (Vsync) for presentation. # Setting this to 0 disables vertical synchronization entirely. # A positive value 'n' will enable Vsync and repeat the same @@ -160,10 +151,10 @@ # d3d9.presentInterval = -1 +# Controls tearing behaviour with regards to in-game Vsync settings. +# # True enables the mailbox present mode in case regular Vsync is disabled. -# This should avoid tearing, but may be unsupported on some systems -# or require setting dxgi.numBackBuffers to a higher value in order -# to work properly. +# This eliminates tearing, but may be unsupported on some systems. # # False enables the relaxed fifo present mode in case regular Vsync is enabled. # This should result in tearing but reduce stutter if FPS are too low, diff --git a/src/d3d11/d3d11_options.cpp b/src/d3d11/d3d11_options.cpp index a173f9f8d..da8e2ca55 100644 --- a/src/d3d11/d3d11_options.cpp +++ b/src/d3d11/d3d11_options.cpp @@ -28,7 +28,6 @@ namespace dxvk { this->disableMsaa = config.getOption("d3d11.disableMsaa", false); this->enableContextLock = config.getOption("d3d11.enableContextLock", false); this->deferSurfaceCreation = config.getOption("dxgi.deferSurfaceCreation", false); - this->numBackBuffers = config.getOption("dxgi.numBackBuffers", 0); this->maxFrameLatency = config.getOption("dxgi.maxFrameLatency", 0); this->exposeDriverCommandLists = config.getOption("d3d11.exposeDriverCommandLists", true); this->reproducibleCommandStream = config.getOption("d3d11.reproducibleCommandStream", false); diff --git a/src/d3d11/d3d11_options.h b/src/d3d11/d3d11_options.h index 4d8a84638..f41979d56 100644 --- a/src/d3d11/d3d11_options.h +++ b/src/d3d11/d3d11_options.h @@ -72,10 +72,6 @@ namespace dxvk { /// Enable float control bits bool floatControls = true; - /// Back buffer count for the Vulkan swap chain. - /// Overrides DXGI_SWAP_CHAIN_DESC::BufferCount. - int32_t numBackBuffers = 0; - /// Override maximum frame latency if the app specifies /// a higher value. May help with frame timing issues. int32_t maxFrameLatency = 0; diff --git a/src/d3d9/d3d9_options.cpp b/src/d3d9/d3d9_options.cpp index e535d610c..1b66699c7 100644 --- a/src/d3d9/d3d9_options.cpp +++ b/src/d3d9/d3d9_options.cpp @@ -49,7 +49,6 @@ namespace dxvk { this->strictConstantCopies = config.getOption ("d3d9.strictConstantCopies", false); this->strictPow = config.getOption ("d3d9.strictPow", true); this->lenientClear = config.getOption ("d3d9.lenientClear", false); - this->numBackBuffers = config.getOption ("d3d9.numBackBuffers", 0); this->deferSurfaceCreation = config.getOption ("d3d9.deferSurfaceCreation", false); this->samplerAnisotropy = config.getOption ("d3d9.samplerAnisotropy", -1); this->maxAvailableMemory = config.getOption ("d3d9.maxAvailableMemory", 4096); diff --git a/src/d3d9/d3d9_options.h b/src/d3d9/d3d9_options.h index 7339f8cbb..4d733880f 100644 --- a/src/d3d9/d3d9_options.h +++ b/src/d3d9/d3d9_options.h @@ -50,10 +50,6 @@ namespace dxvk { /// Whether or not to do a fast path clear if we're close enough to the whole render target. bool lenientClear; - /// Back buffer count for the Vulkan swap chain. - /// Overrides buffer count in present parameters. - int32_t numBackBuffers; - /// Defer surface creation bool deferSurfaceCreation;