Fix falling back to the old timing, also show audio timing in the frame timing overlay

This commit is contained in:
Henrik Rydgård committed 2023-08-16 15:53:24 +02:00
1 parent fb4c167d37
commit f86053d020
6 files changed
+26 -14

No files matched your search

+4 -3
View File
@@ -646,7 +646,7 @@ void __DisplayFlip(int cyclesLate) {
int frameSkipNum;
// If the ideal case, use the new timing path.
g_frameTiming.usePresentTiming = g_Config.iFrameSkip == 0 && !refreshRateNeedsSkip;
g_frameTiming.usePresentTiming = g_Config.iFrameSkip == 0 && !refreshRateNeedsSkip && throttle;
if (g_frameTiming.usePresentTiming) {
if (Core_NextFrame()) {
@@ -657,11 +657,12 @@ void __DisplayFlip(int cyclesLate) {
goto finishUp;
} else {
// This should only happen if we're stepping in the debugger.
// Go to the old path.
g_frameTiming.usePresentTiming = false;
// Fall through to the old path.
}
}
g_frameTiming.DontUse();
// Setting CORE_NEXTFRAME (which Core_NextFrame does) causes a swap.
if (fbReallyDirty || noRecentFlip || postEffectRequiresFlip) {
// Check first though, might've just quit / been paused.