mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +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:
|
case NotifyCollectionChangedAction.Remove:
|
||||||
Debug.Assert(args.OldItems != null);
|
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)
|
if (args.OldItems.Count == roomFlow.Count)
|
||||||
clearRooms();
|
clearRooms();
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user