1
0
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:
Dean Herbert 2019-04-24 15:23:00 +09:00
parent 80e1568e97
commit 60328cf1fb

View File

@ -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)