mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +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; }
|
||||
|
||||
// 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;
|
||||
|
||||
public ClicksPerSecondCalculator()
|
||||
|
Loading…
Reference in New Issue
Block a user