mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Add explanatory note
This commit is contained in:
parent
858f2fc749
commit
7914236516
@ -126,6 +126,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
case NotifyCollectionChangedAction.Remove:
|
||||
Debug.Assert(args.OldItems != null);
|
||||
|
||||
// clear operations have a separate path that benefits from async disposal,
|
||||
// since disposing is quite expensive when performed on a high number of drawables synchronously.
|
||||
if (args.OldItems.Count == roomFlow.Count)
|
||||
clearRooms();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user