fix constant algorithm scroll speed

This commit is contained in:
Hiviexd 2024-11-14 15:38:10 +01:00
parent 85d292ae57
commit 2cbb09573d
1 changed files with 5 additions and 2 deletions

View File

@ -84,8 +84,11 @@ protected override void Update()
protected virtual double ComputeTimeRange() protected virtual double ComputeTimeRange()
{ {
// Adjust when we're using constant algorithm to not be sluggish. // Using the constant algorithm results in a sluggish scroll speed that's equal to 60 BPM.
double multiplier = VisualisationMethod == ScrollVisualisationMethod.Constant ? 4 * Beatmap.Difficulty.SliderMultiplier : 1; // We need to adjust it to the expected default scroll speed (BPM * base SV multiplier).
double multiplier = VisualisationMethod == ScrollVisualisationMethod.Constant
? (Beatmap.BeatmapInfo.BPM * Beatmap.Difficulty.SliderMultiplier) / 60
: 1;
return PlayfieldAdjustmentContainer.ComputeTimeRange() / multiplier; return PlayfieldAdjustmentContainer.ComputeTimeRange() / multiplier;
} }