Merge pull request #12915 from peppy/regenerate-replay-less

Ensure `RegenerateAutoplay` is only run once per frame
This commit is contained in:
Dan Balasescu 2021-05-24 17:25:42 +09:00 committed by GitHub
commit 7a343c1576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ namespace osu.Game.Rulesets.Edit
}
}
private void updateReplay() => drawableRuleset.RegenerateAutoplay();
private void updateReplay() => Scheduler.AddOnce(drawableRuleset.RegenerateAutoplay);
private void addHitObject(HitObject hitObject)
{