1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 23:27:24 +08:00

Remove redundant ProcessFrame calls

Of note, I'm not sure whether the `IsPaused` check was meaningful, but
it's not reimplemented in the new `FramedBeatmapClock`.
This commit is contained in:
Dean Herbert 2022-08-18 19:12:49 +09:00
parent 7bc96431a7
commit 1d774f3f12

View File

@ -117,9 +117,6 @@ namespace osu.Game.Screens.Play
GameplayClock.Seek(time); GameplayClock.Seek(time);
// Manually process to make sure the gameplay clock is correctly updated after a seek.
GameplayClock.ProcessFrame();
OnSeek?.Invoke(); OnSeek?.Invoke();
} }
@ -163,14 +160,6 @@ namespace osu.Game.Screens.Play
ChangeSource(SourceClock); ChangeSource(SourceClock);
} }
protected override void Update()
{
if (!IsPaused.Value)
GameplayClock.ProcessFrame();
base.Update();
}
/// <summary> /// <summary>
/// Invoked when the value of <see cref="IsPaused"/> is changed to start or stop the <see cref="GameplayClock"/> clock. /// Invoked when the value of <see cref="IsPaused"/> is changed to start or stop the <see cref="GameplayClock"/> clock.
/// </summary> /// </summary>