[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.
This commit is contained in:
Philip Rebohle 2019-07-04 16:10:33 +02:00
parent 3b128179ab
commit 3b1376b2fe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -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);