1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

Preload drawables to force asynchronous construction

This commit is contained in:
Dean Herbert 2017-12-18 06:59:32 +09:00
parent 3759c39f00
commit 482941b333

View File

@ -68,6 +68,9 @@ namespace osu.Game.Screens.Select
{
value.Select(createCarouselSet).Where(g => g != null).ForEach(newRoot.AddChild);
newRoot.Filter(activeCriteria);
// preload drawables as the ctor overhead is quite high currently.
var drawables = newRoot.Drawables;
}).ContinueWith(t =>
{
Schedule(() =>