Allow FrameStabilityContainer to handle waiting-for-data state better (and pause outwards)

This commit is contained in:
Dean Herbert
2020-10-27 16:28:50 +09:00
parent 3ec3321a3d
commit 9e6b0a42ec
2 changed files with 27 additions and 4 deletions

View File

@ -96,6 +96,7 @@ namespace osu.Game.Rulesets.UI
public override bool UpdateSubTree()
{
requireMoreUpdateLoops = true;
validState = !frameStableClock.IsPaused.Value;
int loops = 0;
@ -191,7 +192,7 @@ namespace osu.Game.Rulesets.UI
finally
{
if (newProposedTime != manualClock.CurrentTime)
direction = newProposedTime > manualClock.CurrentTime ? 1 : -1;
direction = newProposedTime >= manualClock.CurrentTime ? 1 : -1;
manualClock.CurrentTime = newProposedTime;
manualClock.Rate = Math.Abs(parentGameplayClock.Rate) * direction;