From 7590a44fc4143aca896e28ca2dcc07a6f6cd20a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 9 Mar 2017 14:16:51 +0100 Subject: [PATCH] Enable "FrameskipUnthrottle" on Windows UWP as we don't control VSync (yet) --- Core/Config.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 721913f897..bb95c18661 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -408,6 +408,14 @@ static int DefaultInternalResolution() { #endif } +static bool DefaultFrameskipUnthrottle() { +#if !PPSSPP_PLATFORM(WINDOWS) || PPSSPP_PLATFORM(UWP) + return true; +#else + return false; +#endif +} + static int DefaultZoomType() { return 2; } @@ -457,13 +465,11 @@ static ConfigSetting graphicsSettings[] = { ReportedConfigSetting("FrameSkip", &g_Config.iFrameSkip, 0, true, true), ReportedConfigSetting("AutoFrameSkip", &g_Config.bAutoFrameSkip, false, true, true), ConfigSetting("FrameRate", &g_Config.iFpsLimit, 0, true, true), + ConfigSetting("FrameSkipUnthrottle", &g_Config.bFrameSkipUnthrottle, &DefaultFrameskipUnthrottle, true, false), #ifdef _WIN32 - ConfigSetting("FrameSkipUnthrottle", &g_Config.bFrameSkipUnthrottle, false, true, true), #if defined(USING_WIN_UI) ConfigSetting("RestartRequired", &g_Config.bRestartRequired, false, false), #endif -#else - ConfigSetting("FrameSkipUnthrottle", &g_Config.bFrameSkipUnthrottle, true), #endif ReportedConfigSetting("ForceMaxEmulatedFPS", &g_Config.iForceMaxEmulatedFPS, 60, true, true),