aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-09-10 02:38:56 +0300
committerThomas Guillemard <thog@protonmail.com>2018-09-10 01:38:56 +0200
commitdb1a759c5927f2df9ddd9a08fd691f99bf10e6f8 (patch)
tree5f11107dd4b3672a6c2e4627154ca27f7f15083e /Ryujinx.HLE/HOS
parentfc77b089a6ab600ac6f954cb193d26239008975f (diff)
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
Diffstat (limited to 'Ryujinx.HLE/HOS')
-rw-r--r--Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs5
1 files changed, 5 insertions, 0 deletions
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);
}