mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-10 01:50:46 +09:00
Reduce conversion step in performance proessor
This commit is contained in:
parent
fb7ba28ba6
commit
ce87edd813
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue