mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
calculateRhythmBonus performance fix.
This commit is contained in:
parent
1aac978a7b
commit
c87ff82c1c
@ -55,7 +55,12 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
|||||||
|
|
||||||
bool firstDeltaSwitch = false;
|
bool firstDeltaSwitch = false;
|
||||||
|
|
||||||
for (int i = Previous.Count - 2; i > 0; i--)
|
int rhythmStart = Math.Min(Previous.Count - 2, 0);
|
||||||
|
|
||||||
|
while (rhythmStart < Previous.Count - 2 && current.StartTime - Previous[rhythmStart].StartTime < history_time_max)
|
||||||
|
rhythmStart++;
|
||||||
|
|
||||||
|
for (int i = rhythmStart; i > 0; i--)
|
||||||
{
|
{
|
||||||
OsuDifficultyHitObject currObj = (OsuDifficultyHitObject)Previous[i - 1];
|
OsuDifficultyHitObject currObj = (OsuDifficultyHitObject)Previous[i - 1];
|
||||||
OsuDifficultyHitObject prevObj = (OsuDifficultyHitObject)Previous[i];
|
OsuDifficultyHitObject prevObj = (OsuDifficultyHitObject)Previous[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user