1
0
mirror of https://github.com/ppy/osu synced 2025-03-21 02:17:48 +00: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); value.Select(createCarouselSet).Where(g => g != null).ForEach(newRoot.AddChild);
newRoot.Filter(activeCriteria); newRoot.Filter(activeCriteria);
// preload drawables as the ctor overhead is quite high currently.
var drawables = newRoot.Drawables;
}).ContinueWith(t => }).ContinueWith(t =>
{ {
Schedule(() => Schedule(() =>