mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Ensure FrameStabilityContainer's ElapsedTime is zero on initial seek
This commit is contained in:
parent
80e1568e97
commit
60328cf1fb
@ -110,6 +110,10 @@ namespace osu.Game.Rulesets.UI
|
||||
// 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
Block a user