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

Use gameplay clock's TrueGameplayRate in FrameStabilityContainer?

This commit is contained in:
Dean Herbert 2022-09-05 23:38:22 +09:00
parent 266eb758aa
commit 44b456e216

View File

@ -263,23 +263,7 @@ namespace osu.Game.Rulesets.UI
public FrameTimeInfo TimeInfo => framedClock.TimeInfo; public FrameTimeInfo TimeInfo => framedClock.TimeInfo;
public double TrueGameplayRate public double TrueGameplayRate => parentGameplayClock?.TrueGameplayRate ?? Rate;
{
get
{
double baseRate = Rate;
foreach (double adjustment in NonGameplayAdjustments)
{
if (Precision.AlmostEquals(adjustment, 0))
return 0;
baseRate /= adjustment;
}
return baseRate;
}
}
public double StartTime => parentGameplayClock?.StartTime ?? 0; public double StartTime => parentGameplayClock?.StartTime ?? 0;