Skip to content

Commit

Permalink
Android: On some newer devices with 32-bit userland, default to Vulkan.
Browse files Browse the repository at this point in the history
We already default to Vulkan on all recent 64-bit devices, but there are
some 32-bit devices that benefit, so let's set a high lower bound
for OS version.
  • Loading branch information
hrydgard committed Aug 18, 2023
1 parent 5acb421 commit 94752ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Core/Config.cpp
Expand Up @@ -396,6 +396,12 @@ static int DefaultGPUBackend() {
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 27) {
return (int)GPUBackend::VULKAN;
}
#else
// There are some newer devices that benefit from Vulkan as default, but are 32-bit. Example: Redmi 9A.
// Let's only allow the very newest generation though.
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 30) {
return (int)GPUBackend::VULKAN;
}
#endif
#elif PPSSPP_PLATFORM(MAC)
#if PPSSPP_ARCH(ARM64)
Expand Down

0 comments on commit 94752ea

Please sign in to comment.