From 3b1376b2feba0bed66fd3581766bf8c357a33ecc Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 4 Jul 2019 16:10:33 +0200 Subject: [PATCH] [dxvk] Increase memory chunk size to 128 MiB Nvidia drivers apparently don't like smaller chunks very much. May increase overall memory consumption and fragmentation. --- src/dxvk/dxvk_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_memory.cpp b/src/dxvk/dxvk_memory.cpp index 89b18da26..33e68fcc3 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -402,7 +402,7 @@ namespace dxvk { // Pick a reasonable chunk size depending on the memory // heap size. Small chunk sizes can reduce fragmentation // and are therefore preferred for small memory heaps. - constexpr VkDeviceSize MaxChunkSize = 64 * 1024 * 1024; + constexpr VkDeviceSize MaxChunkSize = 128 << 20; constexpr VkDeviceSize MinChunkCount = 16; return std::min(heapSize / MinChunkCount, MaxChunkSize);