From aa334243ca0a165114a9974d6bfd37ae1ac38bdd Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 26 Jun 2018 01:10:01 -0300 Subject: [PATCH] VSync was still enabled --- Ryujinx/Ui/GLScreen.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Ryujinx/Ui/GLScreen.cs b/Ryujinx/Ui/GLScreen.cs index cada3c5ac..6436e95bb 100644 --- a/Ryujinx/Ui/GLScreen.cs +++ b/Ryujinx/Ui/GLScreen.cs @@ -59,25 +59,25 @@ namespace Ryujinx if (!IsExiting) { - UpdateFrame(); - - Ticks += Chrono.ElapsedTicks; - - Chrono.Restart(); - - if (Ticks > TicksPerFrame) + while (Ticks < TicksPerFrame) { - RenderFrame(); + UpdateFrame(); - Ticks -= TicksPerFrame; + Ticks += Chrono.ElapsedTicks; + + Chrono.Restart(); } + + RenderFrame(); + + Ticks -= TicksPerFrame; } } } private new void Load() { - //VSync = VSyncMode.On; + VSync = VSyncMode.Off; Renderer.FrameBuffer.SetWindowSize(Width, Height); }