mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #1496 from smoogipoo/fix-replay-clock
Fix replay clock always running one frame behind
This commit is contained in:
commit
f87962dcd0
@ -1 +1 @@
|
|||||||
Subproject commit 47aabeaee5a8d85a0e6769fd601736f8dc1eb051
|
Subproject commit c95b9350edb6305cfefdf08f902f6f73d336736b
|
@ -76,6 +76,8 @@ namespace osu.Game.Rulesets.UI
|
|||||||
|
|
||||||
#region Clock control
|
#region Clock control
|
||||||
|
|
||||||
|
protected override bool ShouldProcessClock => false; // We handle processing the clock ourselves
|
||||||
|
|
||||||
private ManualClock clock;
|
private ManualClock clock;
|
||||||
private IFrameBasedClock parentClock;
|
private IFrameBasedClock parentClock;
|
||||||
|
|
||||||
@ -151,6 +153,12 @@ namespace osu.Game.Rulesets.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
requireMoreUpdateLoops = clock.CurrentTime != parentClock.CurrentTime;
|
requireMoreUpdateLoops = clock.CurrentTime != parentClock.CurrentTime;
|
||||||
|
|
||||||
|
// The manual clock time has changed in the above code. The framed clock now needs to be updated
|
||||||
|
// to ensure that the its time is valid for our children before input is processed
|
||||||
|
Clock.ProcessFrame();
|
||||||
|
|
||||||
|
// Process input
|
||||||
base.Update();
|
base.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user