1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Simplify calculation

This commit is contained in:
Dean Herbert 2023-10-24 14:32:03 +09:00
parent ff66b74b0e
commit ded99c4097
No known key found for this signature in database

View File

@ -120,11 +120,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{
DrawableSlider drawableSlider = (DrawableSlider)drawableObject;
// stable apparently calculates slider velocity in units of seconds rather than milliseconds.
double stableSliderVelocity = drawableSlider.HitObject.Velocity * 1000;
frameDelay = Math.Max(
150 / stableSliderVelocity * LegacySkinExtensions.SIXTY_FRAME_TIME,
0.15 / drawableSlider.HitObject.Velocity * LegacySkinExtensions.SIXTY_FRAME_TIME,
LegacySkinExtensions.SIXTY_FRAME_TIME);
}
else