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:
parent
3759c39f00
commit
482941b333
@ -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(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user