1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Update in line with framed clock changes

This commit is contained in:
Dean Herbert 2023-09-22 22:02:18 +09:00
parent 251a85db43
commit d019cb5167
2 changed files with 3 additions and 6 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Beatmaps
private IDisposable? beatmapOffsetSubscription;
private readonly DecouplingClock decoupledTrack;
private readonly DecouplingFramedClock decoupledTrack;
[Resolved]
private OsuConfigManager config { get; set; } = null!;
@ -59,7 +59,7 @@ namespace osu.Game.Beatmaps
{
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 @@ namespace osu.Game.Beatmaps
{
base.Update();
if (decoupledTrack.Source is IFrameBasedClock framedClock)
framedClock.ProcessFrame();
finalClockSource.ProcessFrame();
if (Clock.ElapsedFrameTime != 0)

View File

@ -58,7 +58,7 @@ namespace osu.Game.Screens.Menu
{
PrepareMenuLoad();
var decouplingClock = new DecouplingClock(UsingThemedIntro ? Track : null);
var decouplingClock = new DecouplingFramedClock(UsingThemedIntro ? Track : null);
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground())
{