From 46e31fa42eda392a71624c57aba6eda051cb02fb Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 11 Jul 2018 20:15:49 -0300 Subject: [PATCH] Queue max 1 vsync, fix high FPS after a slowdown --- Ryujinx/Ui/GLScreen.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ryujinx/Ui/GLScreen.cs b/Ryujinx/Ui/GLScreen.cs index 94f6d5dbba..9b5dda4f0c 100644 --- a/Ryujinx/Ui/GLScreen.cs +++ b/Ryujinx/Ui/GLScreen.cs @@ -91,7 +91,8 @@ namespace Ryujinx { RenderFrame(); - Ticks -= TicksPerFrame; + //Queue max. 1 vsync + Ticks = Math.Min(Ticks - TicksPerFrame, TicksPerFrame); } } }