Reword comments to make more sense

This commit is contained in:
Dean Herbert 2023-07-25 16:15:16 +09:00
parent 6f66e2fdd7
commit 7b3bd0b042
1 changed files with 4 additions and 5 deletions

View File

@ -56,7 +56,7 @@ private void load(LadderInfo ladder)
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
new TournamentUpdateableOnlineBeatmapSetCover
new NoUnloadBeatmapSetCover
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.5f),
@ -181,13 +181,12 @@ private void updateState()
}
}
private partial class TournamentUpdateableOnlineBeatmapSetCover : UpdateableOnlineBeatmapSetCover
private partial class NoUnloadBeatmapSetCover : UpdateableOnlineBeatmapSetCover
{
// no need to wait for Load because beatmap cover information does not change.
// As covers are displayed on stream, we want them to load as soon as possible.
protected override double LoadDelay => 0;
// Use DelayedLoadWrapper to avoid beatmap cover unload in map pool.
// see https://github.com/ppy/osu/discussions/24337
// Use DelayedLoadWrapper to avoid content unloading when switching away to another screen.
protected override DelayedLoadWrapper CreateDelayedLoadWrapper(Func<Drawable> createContentFunc, double timeBeforeLoad)
=> new DelayedLoadWrapper(createContentFunc, timeBeforeLoad);
}