From f3b2cb6fca80643a076b6e37a7653b0e338eb340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 18 Aug 2023 15:04:44 +0200 Subject: [PATCH] Remove outdated hack for vsync parameter on Android. --- Core/Config.cpp | 6 ------ UI/NativeApp.cpp | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 8494abb539..5f3742a8c7 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -149,7 +149,6 @@ static bool DefaultCodeGen() { static bool DefaultVSync() { #if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(UWP) - ERROR_LOG(SYSTEM, "Default vsync true"); // Previously we didn't allow turning off vsync/FIFO on Android. Let's set the default accordingly. return true; #else @@ -1198,11 +1197,6 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) { CleanRecent(); -#if PPSSPP_PLATFORM(ANDROID) - // The on path here is untested, since we don't expose it. - g_Config.bVSync = false; -#endif - PostLoadCleanup(false); INFO_LOG(LOADER, "Config loaded: '%s'", iniFilename_.c_str()); diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 29a1c392c1..7f544bdd1b 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -804,12 +804,10 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch std::string sysName = System_GetProperty(SYSPROP_NAME); isOuya = KeyMap::IsOuya(sysName); - ERROR_LOG(G3D, "Backend: %d", g_Config.iGPUBackend); - // We do this here, instead of in NativeInitGraphics, because the display may be reset. // When it's reset we don't want to forget all our managed things. CheckFailedGPUBackends(); - SetGPUBackend((GPUBackend) g_Config.iGPUBackend); + SetGPUBackend((GPUBackend)g_Config.iGPUBackend); renderCounter = 0; // Initialize retro achievements runtime.