Further adjustments

This commit is contained in:
apollo-dw
2022-06-14 16:16:12 +01:00
parent 737197591d
commit 2634e56944

View File

@ -41,8 +41,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
{ {
double currDeltaTime = Math.Max(1, osuCurrObj.DeltaTime); double currDeltaTime = Math.Max(1, osuCurrObj.DeltaTime);
double nextDeltaTime = Math.Max(1, osuNextObj.DeltaTime); double nextDeltaTime = Math.Max(1, osuNextObj.DeltaTime);
double speedRatio = Math.Min(1, currDeltaTime / nextDeltaTime); double deltaDifference = Math.Abs(nextDeltaTime - currDeltaTime);
double windowRatio = Math.Min(1, currDeltaTime / greatWindowFull); double speedRatio = Math.Min(1, currDeltaTime / deltaDifference);
double windowRatio = Math.Pow(Math.Min(1, currDeltaTime / greatWindowFull), 2);
doubletapness = Math.Pow(speedRatio, 1 - windowRatio); doubletapness = Math.Pow(speedRatio, 1 - windowRatio);
} }