mirror of https://github.com/ppy/osu
Fix elapsed time being counted twice on first frame
This commit is contained in:
parent
225528d519
commit
d70fddb6fd
|
@ -227,8 +227,10 @@ private void checkPlaybackValidity()
|
|||
{
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue