mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 15:03:16 +08:00
Use schedule to workaround seek issue instead
This commit is contained in:
parent
cf2212e794
commit
a903aee17e
@ -614,6 +614,11 @@ namespace osu.Game.Screens.Play
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="time">The destination time to seek to.</param>
|
/// <param name="time">The destination time to seek to.</param>
|
||||||
internal void NonFrameStableSeek(double time)
|
internal void NonFrameStableSeek(double time)
|
||||||
|
{
|
||||||
|
// TODO: This schedule should not be required and is a temporary hotfix.
|
||||||
|
// See https://github.com/ppy/osu/issues/17267 for the issue.
|
||||||
|
// See https://github.com/ppy/osu/pull/17302 for a better fix which needs some more time.
|
||||||
|
ScheduleAfterChildren(() =>
|
||||||
{
|
{
|
||||||
if (frameStablePlaybackResetDelegate?.Cancelled == false && !frameStablePlaybackResetDelegate.Completed)
|
if (frameStablePlaybackResetDelegate?.Cancelled == false && !frameStablePlaybackResetDelegate.Completed)
|
||||||
frameStablePlaybackResetDelegate.RunTask();
|
frameStablePlaybackResetDelegate.RunTask();
|
||||||
@ -625,6 +630,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
// Delay resetting frame-stable playback for one frame to give the FrameStabilityContainer a chance to seek.
|
// Delay resetting frame-stable playback for one frame to give the FrameStabilityContainer a chance to seek.
|
||||||
frameStablePlaybackResetDelegate = ScheduleAfterChildren(() => DrawableRuleset.FrameStablePlayback = wasFrameStable);
|
frameStablePlaybackResetDelegate = ScheduleAfterChildren(() => DrawableRuleset.FrameStablePlayback = wasFrameStable);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user