mirror of
https://github.com/ppy/osu
synced 2025-01-06 14:20:03 +00:00
Update in line with framed clock changes
This commit is contained in:
parent
251a85db43
commit
d019cb5167
@ -42,7 +42,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
private IDisposable? beatmapOffsetSubscription;
|
private IDisposable? beatmapOffsetSubscription;
|
||||||
|
|
||||||
private readonly DecouplingClock decoupledTrack;
|
private readonly DecouplingFramedClock decoupledTrack;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuConfigManager config { get; set; } = null!;
|
private OsuConfigManager config { get; set; } = null!;
|
||||||
@ -59,7 +59,7 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
this.applyOffsets = applyOffsets;
|
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
|
// 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).
|
// 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();
|
base.Update();
|
||||||
|
|
||||||
if (decoupledTrack.Source is IFrameBasedClock framedClock)
|
|
||||||
framedClock.ProcessFrame();
|
|
||||||
|
|
||||||
finalClockSource.ProcessFrame();
|
finalClockSource.ProcessFrame();
|
||||||
|
|
||||||
if (Clock.ElapsedFrameTime != 0)
|
if (Clock.ElapsedFrameTime != 0)
|
||||||
|
@ -58,7 +58,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
PrepareMenuLoad();
|
PrepareMenuLoad();
|
||||||
|
|
||||||
var decouplingClock = new DecouplingClock(UsingThemedIntro ? Track : null);
|
var decouplingClock = new DecouplingFramedClock(UsingThemedIntro ? Track : null);
|
||||||
|
|
||||||
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground())
|
LoadComponentAsync(intro = new TrianglesIntroSequence(logo, () => FadeInBackground())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user