mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09: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:
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user