Add new methods to ruleset for quicker mod lookups

This commit is contained in:
Dean Herbert
2021-09-09 16:34:49 +09:00
parent e66d76d26e
commit 4d0530ca9d
7 changed files with 51 additions and 5 deletions

View File

@ -39,5 +39,11 @@ namespace osu.Game.Benchmarks
{
ruleset.GetAllMods().Consume(new Consumer());
}
[Benchmark]
public void BenchmarkGetAllModsForReference()
{
ruleset.GetAllModsForReference().Consume(new Consumer());
}
}
}