mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
vk: Tune resource quotas
- Tuned for 1G. The system requires about 128M for scratch and system data.
This commit is contained in:
parent
db70cd058a
commit
4e2f3a289c
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue