1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-09 09:35:15 +09:00

Reduce conversion step in performance proessor

This commit is contained in:
smoogipoo 2018-05-12 12:26:38 +09:00
parent fb7ba28ba6
commit ce87edd813

View file

@ -38,8 +38,7 @@ namespace PerformanceCalculator.Performance
workingBeatmap.Mods.Value = score.Mods;
// Convert + process beatmap
IBeatmap converted = ruleset.CreateBeatmapConverter(workingBeatmap.GetPlayableBeatmap(score.Ruleset)).Convert();
ruleset.CreateBeatmapProcessor(converted).PostProcess();
IBeatmap converted = workingBeatmap.GetPlayableBeatmap(score.Ruleset);
var categoryAttribs = new Dictionary<string, double>();
double pp = ruleset.CreatePerformanceCalculator(converted, score).Calculate(categoryAttribs);