Skip to content

Commit

Permalink
Core: Fix lag sync on game start / after pause.
Browse files Browse the repository at this point in the history
Fixes #11189.  It was often stuck thinking it was constantly running over,
needed a reset on large delay.
  • Loading branch information
unknownbrackets committed Feb 19, 2019
1 parent 01f0f3e commit 4f15d2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/HLE/sceDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ void __DisplayFlip(int cyclesLate);
static void ScheduleLagSync(int over = 0) {
lagSyncScheduled = g_Config.bForceLagSync;
if (lagSyncScheduled) {
if (over > 1000000 / 60) {
over = 0;
}
CoreTiming::ScheduleEvent(usToCycles(1000 + over), lagSyncEvent, 0);
lastLagSync = real_time_now();
}
Expand Down

0 comments on commit 4f15d2d

Please sign in to comment.