1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Use DelayedLoadWrapper to avoid beatmap cover unload in map pool

This commit is contained in:
cdwcgt 2023-07-24 02:48:01 +09:00
parent 9f68bb4e4a
commit fd4d3a6d66
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -56,7 +56,7 @@ namespace osu.Game.Tournament.Components
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
new UpdateableOnlineBeatmapSetCover
new TournamentUpdateableOnlineBeatmapSetCover
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.5f),
@ -180,5 +180,13 @@ namespace osu.Game.Tournament.Components
Alpha = 1;
}
}
private partial class TournamentUpdateableOnlineBeatmapSetCover : UpdateableOnlineBeatmapSetCover
{
// Use DelayedLoadWrapper to avoid beatmap cover unload in map pool.
// see https://github.com/ppy/osu/discussions/24337
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
=> new DelayedLoadWrapper(createContentFunc, timeBeforeLoad);
}
}
}