Faster turbo mode for android. Causes flashing in unbuffered but that's a minor issue.

This commit is contained in:
Henrik Rydgard committed 2013-04-14 12:46:24 +02:00
1 parent 4c9e8defe8
commit 037bda0cbe
2 files changed
+15 -13

No files matched your search

+15 -8
View File
@@ -282,6 +282,21 @@ void DoFrameTiming(bool &throttle, bool &skipFrame) {
// we have nothing to do here.
bool doFrameSkip = g_Config.iFrameSkip == 1;
// On non windows, which is always vsync locked, we need to force frameskip when
// unthrottled.
#ifndef _WIN32
if (!throttle) {
doFrameSkip = true;
skipFrame = true;
if (numSkippedFrames >= 6) {
INFO_LOG(HLE, "UNSKIP!");
skipFrame = false;
}
INFO_LOG(HLE, "UNTHROTTLE!");
return;
}
#endif
if (!throttle && !doFrameSkip)
return;
@@ -297,14 +312,6 @@ void DoFrameTiming(bool &throttle, bool &skipFrame) {
// INFO_LOG(HLE,"FRAMESKIP %i", numSkippedFrames);
}
// On non windows, which is always vsync locked, we need to force frameskip when
// unthrottled.
#ifndef _WIN32
if (!throttle) {
doFrameSkip = true;
skipFrame = true;
}
#endif
if (curFrameTime < nextFrameTime && throttle)
{