From bdf4cb765a1e63bf8f3d030d9ec7b4fec4a4c11a Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 31 Oct 2024 19:45:09 +0100 Subject: [PATCH] [d3d11] Remove d3d11.maxDynamicImageBufferSize option --- dxvk.conf | 8 -------- src/d3d11/d3d11_options.cpp | 5 ----- src/d3d11/d3d11_options.h | 3 --- src/util/config/config.cpp | 4 ---- 4 files changed, 20 deletions(-) diff --git a/dxvk.conf b/dxvk.conf index b786088bd..75b2041d5 100644 --- a/dxvk.conf +++ b/dxvk.conf @@ -276,14 +276,6 @@ # dxvk.zeroMappedMemory = False -# Resource size limit for buffer-mapped dynamic images, in kilobytes. -# A higher threshold may reduce memory usage and PCI-E bandwidth in -# some games, but may also increase GPU synchronizations. Setting it -# to -1 disables the feature. - -# d3d11.maxDynamicImageBufferSize = -1 - - # Allocates dynamic resources with the given set of bind flags in # cached system memory rather than uncached memory or host-visible # VRAM, in order to allow fast readback from the CPU. This is only diff --git a/src/d3d11/d3d11_options.cpp b/src/d3d11/d3d11_options.cpp index 19a7adc6a..a173f9f8d 100644 --- a/src/d3d11/d3d11_options.cpp +++ b/src/d3d11/d3d11_options.cpp @@ -36,11 +36,6 @@ namespace dxvk { // Clamp LOD bias so that people don't abuse this in unintended ways this->samplerLodBias = dxvk::fclamp(this->samplerLodBias, -2.0f, 1.0f); - int32_t maxDynamicImageBufferSize = config.getOption("d3d11.maxDynamicImageBufferSize", -1); - this->maxDynamicImageBufferSize = maxDynamicImageBufferSize >= 0 - ? VkDeviceSize(maxDynamicImageBufferSize) << 10 - : VkDeviceSize(~0ull); - auto cachedDynamicResources = config.getOption("d3d11.cachedDynamicResources", std::string()); if (IsAPITracingDXGI()) { diff --git a/src/d3d11/d3d11_options.h b/src/d3d11/d3d11_options.h index b17054b7b..8ca2cca27 100644 --- a/src/d3d11/d3d11_options.h +++ b/src/d3d11/d3d11_options.h @@ -80,9 +80,6 @@ namespace dxvk { /// a higher value. May help with frame timing issues. int32_t maxFrameLatency; - /// Limit size of buffer-mapped images - VkDeviceSize maxDynamicImageBufferSize; - /// Defer surface creation until first present call. This /// fixes issues with games that create multiple swap chains /// for a single window that may interfere with each other. diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index c6b956a1c..7fdeaa1bb 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -291,10 +291,6 @@ namespace dxvk { { R"(\\AoE2DE_s\.exe$)", {{ { "d3d11.cachedDynamicResources", "a" }, }} }, - /* Total War: Warhammer III */ - { R"(\\Warhammer3\.exe$)", {{ - { "d3d11.maxDynamicImageBufferSize", "4096" }, - }} }, /* Assassin's Creed 3 and 4 */ { R"(\\ac(3|4bf)[sm]p\.exe$)", {{ { "d3d11.cachedDynamicResources", "a" },