mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
Reduce sorting complexity in worst-case of diffcalc
This commit is contained in:
parent
04fb0f5e63
commit
a555c47212
@ -65,6 +65,10 @@ namespace osu.Game.Rulesets.Difficulty.Skills
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void saveCurrentPeak()
|
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);
|
strainPeaks.Add(currentSectionPeak);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user