Reduce database includes where possible

This commit is contained in:
Dean Herbert
2020-04-28 21:43:35 +09:00
parent 0ffd9da6a9
commit 119000f1ab
6 changed files with 67 additions and 7 deletions

View File

@ -73,7 +73,7 @@ namespace osu.Game.Screens.Menu
if (!MenuMusic.Value)
{
var sets = beatmaps.GetAllUsableBeatmapSets();
var sets = beatmaps.GetAllUsableBeatmapSets(IncludedDetails.Minimal);
if (sets.Count > 0)
setInfo = beatmaps.QueryBeatmapSet(s => s.ID == sets[RNG.Next(0, sets.Count - 1)].ID);
}