mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:43:16 +08:00
Add comment mentioning why reference clock fallback logic is required
This commit is contained in:
parent
e8770b84cd
commit
742a026077
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user