mirror of https://github.com/ppy/osu
Move FrameStablePlayback handling to early return
This commit is contained in:
parent
58d2268b9e
commit
d11b896148
|
@ -118,7 +118,14 @@ private void updateClock()
|
|||
|
||||
try
|
||||
{
|
||||
if (firstConsumption)
|
||||
if (!FrameStablePlayback)
|
||||
{
|
||||
manualClock.CurrentTime = newProposedTime;
|
||||
requireMoreUpdateLoops = false;
|
||||
return;
|
||||
}
|
||||
|
||||
else if (firstConsumption)
|
||||
{
|
||||
// On the first update, frame-stability seeking would result in unexpected/unwanted behaviour.
|
||||
// Instead we perform an initial seek to the proposed time.
|
||||
|
@ -138,7 +145,7 @@ private void updateClock()
|
|||
: Math.Max(newProposedTime, manualClock.CurrentTime - sixty_frame_time);
|
||||
}
|
||||
|
||||
if (!isAttached || !FrameStablePlayback)
|
||||
if (!isAttached)
|
||||
{
|
||||
manualClock.CurrentTime = newProposedTime;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue