mirror of https://github.com/ppy/osu
Ensure FrameStabilityContainer's ElapsedTime is zero on initial seek
This commit is contained in:
parent
80e1568e97
commit
60328cf1fb
|
@ -110,6 +110,10 @@ private void updateClock()
|
|||
// On the first update, frame-stability seeking would result in unexpected/unwanted behaviour.
|
||||
// Instead we perform an initial seek to the proposed time.
|
||||
manualClock.CurrentTime = newProposedTime;
|
||||
|
||||
// do a second process to clear out ElapsedTime
|
||||
framedClock.ProcessFrame();
|
||||
|
||||
firstConsumption = false;
|
||||
}
|
||||
else if (Math.Abs(manualClock.CurrentTime - newProposedTime) > sixty_frame_time * 1.2f)
|
||||
|
|
Loading…
Reference in New Issue