Merge pull request #21276 from peppy/eager-triangles-disposal

Eagerly dispose of triangles intro textures to avoid holding for full length of game session
This commit is contained in:
Dan Balasescu 2022-11-18 11:58:39 +09:00 committed by GitHub
commit c34dd27674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,8 +224,8 @@ namespace osu.Game.Screens.Menu
{ {
rulesetsScale.ScaleTo(0.8f, 1000); rulesetsScale.ScaleTo(0.8f, 1000);
rulesets.FadeIn().ScaleTo(1).TransformSpacingTo(new Vector2(200, 0)); rulesets.FadeIn().ScaleTo(1).TransformSpacingTo(new Vector2(200, 0));
welcomeText.FadeOut(); welcomeText.FadeOut().Expire();
triangles.FadeOut(); triangles.FadeOut().Expire();
} }
using (BeginDelayedSequence(rulesets_2)) using (BeginDelayedSequence(rulesets_2))
@ -307,7 +307,7 @@ namespace osu.Game.Screens.Menu
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(TextureStore textures) private void load(LargeTextureStore textures)
{ {
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {