1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 17:33:22 +08:00

Add comment mentioning why reference clock fallback logic is required

This commit is contained in:
Dean Herbert 2023-01-18 15:24:03 +09:00
parent e8770b84cd
commit 742a026077

View File

@ -24,6 +24,8 @@ namespace osu.Game.Screens.Play.HUD
[Resolved]
private DrawableRuleset? drawableRuleset { get; 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 IClock referenceClock => drawableRuleset?.FrameStableClock ?? GameplayClock;
[Resolved]