mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Debounce calls to UpdateTernaryStates
Just something I noticed in passing recently which may help with reducing performance overhead of some batch operations.
This commit is contained in:
parent
3765c8abb9
commit
ab308d28d2
@ -419,11 +419,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
};
|
||||
|
||||
// bring in updates from selection changes
|
||||
EditorBeatmap.HitObjectUpdated += _ => UpdateTernaryStates();
|
||||
EditorBeatmap.HitObjectUpdated += _ => Scheduler.AddOnce(UpdateTernaryStates);
|
||||
EditorBeatmap.SelectedHitObjects.CollectionChanged += (sender, args) =>
|
||||
{
|
||||
Scheduler.AddOnce(updateVisibility);
|
||||
UpdateTernaryStates();
|
||||
Scheduler.AddOnce(UpdateTernaryStates);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user