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(() =>