1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 14:42:56 +08:00

updated to use deltaTime not stainTime for more accuracy

This commit is contained in:
Xexxar 2021-09-12 18:14:05 +00:00
parent b05963cc50
commit 44163dc9ec

View File

@ -71,8 +71,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
currHistoricalDecay = Math.Min(currHistoricalDecay, (double)(Previous.Count - i) / Previous.Count); // either we're limited by time or limited by object count.
double currDelta = ((OsuDifficultyHitObject)currObj).StrainTime;
double prevDelta = ((OsuDifficultyHitObject)prevObj).StrainTime;
double currDelta = Math.Max(25, currObj.DeltaTime);
double prevDelta = Math.Max(25, prevObj.DeltaTime);
double prevPrevDelta = ((OsuDifficultyHitObject)prevPrevObj).StrainTime;
double effectiveRatio = Math.Min(prevDelta, currDelta) / Math.Max(prevDelta, currDelta);