mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Reduce sorting complexity in worst-case of diffcalc
This commit is contained in:
@ -65,6 +65,10 @@ namespace osu.Game.Rulesets.Difficulty.Skills
|
||||
/// </summary>
|
||||
private void saveCurrentPeak()
|
||||
{
|
||||
// Ignore sections with 0 strain to avoid edge cases of long maps with a lot of spacing between objects (e.g. /b/2351871).
|
||||
if (currentSectionPeak == 0)
|
||||
return;
|
||||
|
||||
strainPeaks.Add(currentSectionPeak);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user