aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Renderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Renderer.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs
index 6b620bb8..92f65083 100644
--- a/Ryujinx.Graphics.OpenGL/Renderer.cs
+++ b/Ryujinx.Graphics.OpenGL/Renderer.cs
@@ -40,6 +40,8 @@ namespace Ryujinx.Graphics.OpenGL
public string GpuRenderer { get; private set; }
public string GpuVersion { get; private set; }
+ public bool PreferThreading => true;
+
public Renderer()
{
_pipeline = new Pipeline();
@@ -129,9 +131,9 @@ namespace Ryujinx.Graphics.OpenGL
ResourcePool.Tick();
}
- public ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler)
+ public ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler, bool hostReserved)
{
- return _counters.QueueReport(type, resultHandler, _pipeline.DrawCount);
+ return _counters.QueueReport(type, resultHandler, _pipeline.DrawCount, hostReserved);
}
public void Initialize(GraphicsDebugLevel glLogLevel)
@@ -163,8 +165,10 @@ namespace Ryujinx.Graphics.OpenGL
_counters.QueueReset(type);
}
- public void BackgroundContextAction(Action action)
+ public void BackgroundContextAction(Action action, bool alwaysBackground = false)
{
+ // alwaysBackground is ignored, since we cannot switch from the current context.
+
if (IOpenGLContext.HasContext())
{
action(); // We have a context already - use that (assuming it is the main one).