mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:02:58 +08:00
Add comment metioning why we need to use DrawableRuleset
lookup
This commit is contained in:
parent
ee094e3a85
commit
a98c6b2c1f
@ -20,6 +20,8 @@ namespace osu.Game.Screens.Play.HUD.ClicksPerSecond
|
|||||||
|
|
||||||
public int Value { get; private set; }
|
public int Value { get; private set; }
|
||||||
|
|
||||||
|
// Even though `FrameStabilityContainer` caches as a `GameplayClock`, we need to check it directly via `drawableRuleset`
|
||||||
|
// as this calculator is not contained within the `FrameStabilityContainer` and won't see the dependency.
|
||||||
private IGameplayClock clock => drawableRuleset?.FrameStableClock ?? gameplayClock;
|
private IGameplayClock clock => drawableRuleset?.FrameStableClock ?? gameplayClock;
|
||||||
|
|
||||||
public ClicksPerSecondCalculator()
|
public ClicksPerSecondCalculator()
|
||||||
|
Loading…
Reference in New Issue
Block a user