vk: Tune resource quotas

- Tuned for 1G. The system requires about 128M for scratch and system data.
This commit is contained in:
kd-11 2023-05-13 02:28:17 +03:00 committed by kd-11
parent db70cd058a
commit 4e2f3a289c
2 changed files with 7 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace vk
}
else if (total_device_memory >= 1024)
{
quota = 768;
quota = std::max<u64>(512, (total_device_memory * 30) / 100);
}
else if (total_device_memory >= 768)
{

View File

@ -1396,13 +1396,17 @@ namespace vk
const auto total_device_memory = m_device->get_memory_mapping().device_local_total_bytes / 0x100000;
u64 quota = 0;
if (total_device_memory >= 1024)
if (total_device_memory >= 2048)
{
quota = std::min<u64>(3072, (total_device_memory * 40) / 100);
}
else if (total_device_memory >= 1024)
{
quota = std::max<u64>(204, (total_device_memory * 30) / 100);
}
else if (total_device_memory >= 768)
{
quota = 256;
quota = 192;
}
else
{