1
0
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:
Dean Herbert 2022-09-08 19:14:23 +09:00
parent ee094e3a85
commit a98c6b2c1f

View File

@ -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()