1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 04:19:53 +08:00

Fix elapsed time being counted twice on first frame

This commit is contained in:
Dean Herbert
2023-12-27 00:11:22 +09:00
Unverified
parent 225528d519
commit d70fddb6fd
@@ -227,8 +227,10 @@ namespace osu.Game.Screens.Play
{
elapsedGameplayClockTime += GameplayClock.ElapsedFrameTime;
elapsedValidationTime ??= elapsedGameplayClockTime;
elapsedValidationTime += GameplayClock.Rate * Time.Elapsed;
if (elapsedValidationTime == null)
elapsedValidationTime = elapsedGameplayClockTime;
else
elapsedValidationTime += GameplayClock.Rate * Time.Elapsed;
if (Math.Abs(elapsedGameplayClockTime - elapsedValidationTime!.Value) > 300)
{