mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Limit metadata updates to once per frame
This commit is contained in:
parent
efa3c3b757
commit
de186f67e0
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user