From 9d4be00fa7d222c76484acb5c4f26294252f5f4c Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 12 Feb 2022 17:23:26 +0100 Subject: [PATCH] [dxvk] Allow large sysmem allocations on 64-bit platforms again Since we frequently discard staging buffers now, having larger chunks is actually beneficial again. --- 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 2871532d..851d7938 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -506,7 +506,7 @@ namespace dxvk { // Try to waste a bit less system memory especially in // 32-bit applications due to address space constraints if (type.propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) - chunkSize = 16 << 20; + chunkSize = (env::is32BitHostPlatform() ? 16 : 64) << 20; // Reduce the chunk size on small heaps so // we can at least fit in 15 allocations