diff --git a/osu.Game/Beatmaps/FramedBeatmapClock.cs b/osu.Game/Beatmaps/FramedBeatmapClock.cs index 5fdabaab46..316d1f8a34 100644 --- a/osu.Game/Beatmaps/FramedBeatmapClock.cs +++ b/osu.Game/Beatmaps/FramedBeatmapClock.cs @@ -42,7 +42,7 @@ public partial class FramedBeatmapClock : Component, IFrameBasedClock, IAdjustab private IDisposable? beatmapOffsetSubscription; - private readonly DecouplingClock decoupledTrack; + private readonly DecouplingFramedClock decoupledTrack; [Resolved] private OsuConfigManager config { get; set; } = null!; @@ -59,7 +59,7 @@ public FramedBeatmapClock(bool applyOffsets, bool requireDecoupling, IClock? sou { this.applyOffsets = applyOffsets; - decoupledTrack = new DecouplingClock(source) { AllowDecoupling = requireDecoupling }; + decoupledTrack = new DecouplingFramedClock(source) { AllowDecoupling = requireDecoupling }; // An interpolating clock is used to ensure precise time values even when the host audio subsystem is not reporting // high precision times (on windows there's generally only 5-10ms reporting intervals, as an example). @@ -110,9 +110,6 @@ protected override void Update() { base.Update(); - if (decoupledTrack.Source is IFrameBasedClock framedClock) - framedClock.ProcessFrame(); - finalClockSource.ProcessFrame(); if (Clock.ElapsedFrameTime != 0) diff --git a/osu.Game/Screens/Menu/IntroTriangles.cs b/osu.Game/Screens/Menu/IntroTriangles.cs index 808680b9e5..aab3afcd24 100644 --- a/osu.Game/Screens/Menu/IntroTriangles.cs +++ b/osu.Game/Screens/Menu/IntroTriangles.cs @@ -58,7 +58,7 @@ protected override void LogoArriving(OsuLogo logo, bool resuming) { PrepareMenuLoad(); - var decouplingClock = new DecouplingClock(UsingThemedIntro ? Track : null); + var decouplingClock = new DecouplingFramedClock(UsingThemedIntro ? Track : null); LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground()) {