1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Reduce precision of audio balance adjustments during slider sliding

This commit is contained in:
Dean Herbert 2024-01-05 01:51:20 +09:00
parent 5b55ca6692
commit e9289cfbe7
No known key found for this signature in database

View File

@ -599,7 +599,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
float balanceAdjustAmount = positionalHitsoundsLevel.Value * 2; float balanceAdjustAmount = positionalHitsoundsLevel.Value * 2;
double returnedValue = balanceAdjustAmount * (position - 0.5f); double returnedValue = balanceAdjustAmount * (position - 0.5f);
return returnedValue; // Rounded to reduce the overhead of audio adjustments (which are currently bindable heavy).
// Balance is very hard to perceive in small increments anyways.
return Math.Round(returnedValue, 2);
} }
/// <summary> /// <summary>