mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix elapsed time being counted twice on first frame
This commit is contained in:
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user