We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe1760 commit 5419d2fCopy full SHA for 5419d2f
osu.Framework.Tests/Clocks/DecouplingFramedClockTest.cs
@@ -432,6 +432,23 @@ public void TestBackwardPlaybackOverZeroBoundary()
432
}
433
434
435
+ [Test]
436
+ public void TestNoDecoupledDrift()
437
+ {
438
+ var stopwatch = new StopwatchClock();
439
+
440
+ decouplingClock.Start();
441
+ stopwatch.Start();
442
443
+ decouplingClock.Seek(-100);
444
+ stopwatch.Seek(-100);
445
446
+ while (decouplingClock.CurrentTime <= 0)
447
+ decouplingClock.ProcessFrame();
448
449
+ Assert.That(decouplingClock.CurrentTime, Is.EqualTo(stopwatch.CurrentTime).Within(1));
450
+ }
451
452
[Test]
453
public void TestForwardPlaybackOverZeroBoundary()
454
{
0 commit comments