From 94752ea7cfd1feb90d5da0cafa325b4c8673da55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 18 Aug 2023 15:12:34 +0200 Subject: [PATCH] Android: On some newer devices with 32-bit userland, default to Vulkan. 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. --- Core/Config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/Config.cpp b/Core/Config.cpp index 2bffb81763..aa5bbc1a4d 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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)