From 7196d6ac7e683c29eae52051b2e833f8a2762285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 23 Aug 2019 17:14:11 +0200 Subject: [PATCH] Default to Vulkan on Android Pie or later. Fixes #12228. --- Core/Config.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index ab9be6da50..69ee998692 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -574,8 +574,16 @@ static int DefaultGPUBackend() { if (DoesVersionMatchWindows(6, 2, 0, 0, true)) { return (int)GPUBackend::DIRECT3D11; } -#endif +#elif PPSSPP_PLATFORM(ANDROID) + // Default to Vulkan only on Pie (level 28) devices or newer. Drivers before Pie + // were generally too unreliable to default to (with some exceptions, of course). + if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 28) { + return (int)GPUBackend::VULKAN; + } +#else + // TODO: On some additional Linux platforms, we should also default to Vulkan. return (int)GPUBackend::OPENGL; +#endif } int Config::NextValidBackend() {