Limit metadata updates to once per frame

This commit is contained in:
Dean Herbert 2022-08-02 22:02:30 +09:00
parent efa3c3b757
commit de186f67e0

View File

@ -87,7 +87,7 @@ namespace osu.Game.Screens.Edit.Setup
target.Current.Value = value; target.Current.Value = value;
updateReadOnlyState(); updateReadOnlyState();
updateMetadata(); Scheduler.AddOnce(updateMetadata);
} }
private void updateReadOnlyState() private void updateReadOnlyState()
@ -102,7 +102,7 @@ namespace osu.Game.Screens.Edit.Setup
// for now, update on commit rather than making BeatmapMetadata bindables. // for now, update on commit rather than making BeatmapMetadata bindables.
// after switching database engines we can reconsider if switching to bindables is a good direction. // after switching database engines we can reconsider if switching to bindables is a good direction.
updateMetadata(); Scheduler.AddOnce(updateMetadata);
} }
private void updateMetadata() private void updateMetadata()