mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Use gameplay clock's TrueGameplayRate
in FrameStabilityContainer
?
This commit is contained in:
parent
266eb758aa
commit
44b456e216
@ -263,23 +263,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
public FrameTimeInfo TimeInfo => framedClock.TimeInfo;
|
||||
|
||||
public double TrueGameplayRate
|
||||
{
|
||||
get
|
||||
{
|
||||
double baseRate = Rate;
|
||||
|
||||
foreach (double adjustment in NonGameplayAdjustments)
|
||||
{
|
||||
if (Precision.AlmostEquals(adjustment, 0))
|
||||
return 0;
|
||||
|
||||
baseRate /= adjustment;
|
||||
}
|
||||
|
||||
return baseRate;
|
||||
}
|
||||
}
|
||||
public double TrueGameplayRate => parentGameplayClock?.TrueGameplayRate ?? Rate;
|
||||
|
||||
public double StartTime => parentGameplayClock?.StartTime ?? 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user