mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fixes Vulkan device selection.
According to #6936 some lower devices (especially virtual ones) might report more memory than regular ones. So we can't use the memory amount as a score for now.
This commit is contained in:
parent
c7ae248b77
commit
dba968013f
1 changed files with 0 additions and 4 deletions
|
|
@ -323,10 +323,6 @@ bool ComparePhysicalDevices(
|
|||
const uint32_t deviceTypeScore2 = GetDeviceTypeScore(device2.properties.deviceType);
|
||||
if (deviceTypeScore1 != deviceTypeScore2)
|
||||
return deviceTypeScore1 > deviceTypeScore2;
|
||||
// We use a total device memory amount to compare. We assume that more memory
|
||||
// means better performance as previous metrics are equal.
|
||||
if (device1.deviceTotalMemory != device2.deviceTotalMemory)
|
||||
return device1.deviceTotalMemory > device2.deviceTotalMemory;
|
||||
return device1.index < device2.index;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue