mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Core: Fix lag sync on game start / after pause.
Fixes #11189. It was often stuck thinking it was constantly running over, needed a reset on large delay.
This commit is contained in:
1 parent
01f0f3e86e
commit
11be1e7a67
1 file changed
+5
@@ -180,6 +180,11 @@ void __DisplayFlip(int cyclesLate);
|
||||
static void ScheduleLagSync(int over = 0) {
|
||||
lagSyncScheduled = g_Config.bForceLagSync;
|
||||
if (lagSyncScheduled) {
|
||||
// Reset over if it became too high, such as after pausing or initial loading.
|
||||
// There's no real sense in it being more than 1/60th of a second.
|
||||
if (over > 1000000 / 60) {
|
||||
over = 0;
|
||||
}
|
||||
CoreTiming::ScheduleEvent(usToCycles(1000 + over), lagSyncEvent, 0);
|
||||
lastLagSync = real_time_now();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user