From db1a759c5927f2df9ddd9a08fd691f99bf10e6f8 Mon Sep 17 00:00:00 2001 From: emmauss Date: Mon, 10 Sep 2018 02:38:56 +0300 Subject: Lock GbpQueueBuffer till Vsync is signalled (#367) * Initial Framerate limit implementation * use seperate event for limiter * check for vsync signal after queue up framebuffer * removed ingame toggle * fix nits --- Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.HLE/HOS') diff --git a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs index 8f541fbf..2a6918c4 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs @@ -199,6 +199,11 @@ namespace Ryujinx.HLE.HOS.Services.Android SendFrameBuffer(Context, Slot); + if (Context.Device.EnableDeviceVsync) + { + Context.Device.VsyncEvent.WaitOne(); + } + return MakeReplyParcel(Context, 1280, 720, 0, 0, 0); } -- cgit v1.2.3