mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Temporarily increase test beatmap count for perf testing
This commit is contained in:
parent
f3b24b9bb5
commit
580ea62710
@ -11,6 +11,7 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
@ -835,42 +836,29 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
Title = $"test set #{id}!",
|
Title = $"test set #{id}!",
|
||||||
AuthorString = string.Concat(Enumerable.Repeat((char)('z' - Math.Min(25, id - 1)), 5))
|
AuthorString = string.Concat(Enumerable.Repeat((char)('z' - Math.Min(25, id - 1)), 5))
|
||||||
},
|
},
|
||||||
Beatmaps = new List<BeatmapInfo>(new[]
|
Beatmaps = getBeatmaps(RNG.Next(1, 20)).ToList()
|
||||||
{
|
|
||||||
new BeatmapInfo
|
|
||||||
{
|
|
||||||
OnlineBeatmapID = id * 10,
|
|
||||||
Version = "Normal",
|
|
||||||
StarDifficulty = 2,
|
|
||||||
BaseDifficulty = new BeatmapDifficulty
|
|
||||||
{
|
|
||||||
OverallDifficulty = 3.5f,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
new BeatmapInfo
|
|
||||||
{
|
|
||||||
OnlineBeatmapID = id * 10 + 1,
|
|
||||||
Version = "Hard",
|
|
||||||
StarDifficulty = 5,
|
|
||||||
BaseDifficulty = new BeatmapDifficulty
|
|
||||||
{
|
|
||||||
OverallDifficulty = 5,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
new BeatmapInfo
|
|
||||||
{
|
|
||||||
OnlineBeatmapID = id * 10 + 2,
|
|
||||||
Version = "Insane",
|
|
||||||
StarDifficulty = 6,
|
|
||||||
BaseDifficulty = new BeatmapDifficulty
|
|
||||||
{
|
|
||||||
OverallDifficulty = 7,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private IEnumerable<BeatmapInfo> getBeatmaps(int count)
|
||||||
|
{
|
||||||
|
int id = 0;
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
yield return new BeatmapInfo
|
||||||
|
{
|
||||||
|
OnlineBeatmapID = id++ * 10,
|
||||||
|
Version = "Normal",
|
||||||
|
StarDifficulty = RNG.NextSingle() * 10,
|
||||||
|
BaseDifficulty = new BeatmapDifficulty
|
||||||
|
{
|
||||||
|
OverallDifficulty = RNG.NextSingle() * 10,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private BeatmapSetInfo createTestBeatmapSetWithManyDifficulties(int id)
|
private BeatmapSetInfo createTestBeatmapSetWithManyDifficulties(int id)
|
||||||
{
|
{
|
||||||
var toReturn = new BeatmapSetInfo
|
var toReturn = new BeatmapSetInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user