mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[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:
parent
3b128179ab
commit
3b1376b2fe
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user