1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

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 nextDeltaTime = Math.Max(1, osuNextObj.DeltaTime);
double speedRatio = Math.Min(1, currDeltaTime / nextDeltaTime);
double windowRatio = Math.Min(1, currDeltaTime / greatWindowFull);
double deltaDifference = Math.Abs(nextDeltaTime - currDeltaTime);
double speedRatio = Math.Min(1, currDeltaTime / deltaDifference);
double windowRatio = Math.Pow(Math.Min(1, currDeltaTime / greatWindowFull), 2);
doubletapness = Math.Pow(speedRatio, 1 - windowRatio);
}