aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Switch.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-07-12 14:03:52 -0300
committergdkchan <gab.dark.100@gmail.com>2018-07-12 14:03:52 -0300
commitcd18ab29dfacd1f7a3218d4ec73ce664bccc3887 (patch)
treec8bbe1c269e0cda16edfa3be0a061a90609abc57 /Ryujinx.HLE/Switch.cs
parent37071285bcf14ef96b16b55cb6ed7c8c003489e0 (diff)
Loop GLScreen with custom method (#244)
* Loop GLScreen with custom method * Fix deadlocks * Fix screen resizing * Change event to bool * Try to fix quitting error * Set title from main thread * Queue max 1 vsync, fix high FPS after a slowdown
Diffstat (limited to 'Ryujinx.HLE/Switch.cs')
-rw-r--r--Ryujinx.HLE/Switch.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs
index f7b263cd..1946b187 100644
--- a/Ryujinx.HLE/Switch.cs
+++ b/Ryujinx.HLE/Switch.cs
@@ -71,6 +71,11 @@ namespace Ryujinx.HLE
Os.LoadProgram(FileName);
}
+ public bool WaitFifo()
+ {
+ return Gpu.Fifo.Event.WaitOne(8);
+ }
+
public void ProcessFrame()
{
Gpu.Fifo.DispatchCalls();