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:
parent
266eb758aa
commit
44b456e216
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user