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