Skip to content

Commit

Permalink
Remove outdated hack for vsync parameter on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 18, 2023
1 parent 5b76615 commit f3b2cb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions Core/Config.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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());
Expand Down
4 changes: 1 addition & 3 deletions UI/NativeApp.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit f3b2cb6

Please sign in to comment.