Skip to content

Commit 2d4e7c2

Browse files
committed
Add logging when workaround is hit
1 parent 4e5a559 commit 2d4e7c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

osu.Game/Rulesets/UI/FrameStabilityContainer.cs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using osu.Framework.Development;
1010
using osu.Framework.Graphics;
1111
using osu.Framework.Graphics.Containers;
12+
using osu.Framework.Logging;
1213
using osu.Framework.Timing;
1314
using osu.Game.Input.Handlers;
1415
using osu.Game.Screens.Play;
@@ -158,6 +159,7 @@ private void updateClock()
158159
// time should never go backwards". If it does, we stop running gameplay until it returns to normal.
159160
if (!hasReplayAttached && FrameStablePlayback && proposedTime > referenceClock.CurrentTime && !DebugUtils.IsNUnitRunning)
160161
{
162+
Logger.Log($"Denying backwards seek during gameplay (reference: {referenceClock.CurrentTime:N2} stable: {proposedTime:N2})");
161163
state = PlaybackState.NotValid;
162164
return;
163165
}

0 commit comments

Comments
 (0)