1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Allow larger chunks on small heaps

Effectively doubles the size of HVV chunks to 32 MiB on systems that
do not have ReBAR enabled. 16 MiB is too small for some use cases.
This commit is contained in:
Philip Rebohle 2024-09-29 22:07:30 +02:00
parent e6f89062f5
commit ae3a9f595e

View File

@ -1464,9 +1464,9 @@ namespace dxvk {
if (mappable)
size /= env::is32BitHostPlatform() ? 16u : 4u;
// Ensure that we can at least do 15 allocations to fill
// Ensure that we can at least do 7 allocations to fill
// the heap. Might be useful on systems with small BAR.
while (15u * size > type.heap->properties.size)
while (7u * size > type.heap->properties.size)
size /= 2u;
// Always use at least the minimum chunk size