mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Use ``GetTrueGameplayRate()
`` to remove need for jank
This commit is contained in:
@ -26,9 +26,6 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private IGameplayClock gameplayClock { get; set; } = null!;
|
private IGameplayClock gameplayClock { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved]
|
|
||||||
private Player player { get; set; } = null!;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colour)
|
private void load(OsuColour colour)
|
||||||
{
|
{
|
||||||
@ -40,11 +37,8 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
//We don't want it going to 0 when we pause. so we block the updates
|
|
||||||
if (gameplayClock.IsPaused.Value || player.GameplayState.HasFailed) return;
|
|
||||||
|
|
||||||
// We want to check Rate every update to cover windup/down
|
// We want to check Rate every update to cover windup/down
|
||||||
Current.Value = beatmap.Value.Beatmap.ControlPointInfo.TimingPointAt(gameplayClock.CurrentTime).BPM * gameplayClock.Rate;
|
Current.Value = beatmap.Value.Beatmap.ControlPointInfo.TimingPointAt(gameplayClock.CurrentTime).BPM * gameplayClock.GetTrueGameplayRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override OsuSpriteText CreateSpriteText()
|
protected override OsuSpriteText CreateSpriteText()
|
||||||
|
Reference in New Issue
Block a user