mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Fix elapsed time being counted twice on first frame
This commit is contained in:
parent
225528d519
commit
d70fddb6fd
@ -227,7 +227,9 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
elapsedGameplayClockTime += GameplayClock.ElapsedFrameTime;
|
elapsedGameplayClockTime += GameplayClock.ElapsedFrameTime;
|
||||||
|
|
||||||
elapsedValidationTime ??= elapsedGameplayClockTime;
|
if (elapsedValidationTime == null)
|
||||||
|
elapsedValidationTime = elapsedGameplayClockTime;
|
||||||
|
else
|
||||||
elapsedValidationTime += GameplayClock.Rate * Time.Elapsed;
|
elapsedValidationTime += GameplayClock.Rate * Time.Elapsed;
|
||||||
|
|
||||||
if (Math.Abs(elapsedGameplayClockTime - elapsedValidationTime!.Value) > 300)
|
if (Math.Abs(elapsedGameplayClockTime - elapsedValidationTime!.Value) > 300)
|
||||||
|
Loading…
Reference in New Issue
Block a user