1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-09 17:44:46 +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; workingBeatmap.Mods.Value = score.Mods;
// Convert + process beatmap // Convert + process beatmap
IBeatmap converted = ruleset.CreateBeatmapConverter(workingBeatmap.GetPlayableBeatmap(score.Ruleset)).Convert(); IBeatmap converted = workingBeatmap.GetPlayableBeatmap(score.Ruleset);
ruleset.CreateBeatmapProcessor(converted).PostProcess();
var categoryAttribs = new Dictionary<string, double>(); var categoryAttribs = new Dictionary<string, double>();
double pp = ruleset.CreatePerformanceCalculator(converted, score).Calculate(categoryAttribs); double pp = ruleset.CreatePerformanceCalculator(converted, score).Calculate(categoryAttribs);