DRM Update

This commit is contained in:
Stossy11 2025-02-10 10:54:59 +11:00
parent 2d5f1d8015
commit 4f3e49a90c
15 changed files with 330 additions and 76 deletions

View file

@ -450,23 +450,12 @@ namespace Ryujinx.Headless.SDL2
};
renderLoopThread.Start();
Thread nvidiaStutterWorkaround = null;
if (Renderer is OpenGLRenderer)
{
nvidiaStutterWorkaround = new Thread(NvidiaStutterWorkaround)
{
Name = "GUI.NvidiaStutterWorkaround",
};
nvidiaStutterWorkaround.Start();
}
MainLoop();
// NOTE: The render loop is allowed to stay alive until the renderer itself is disposed, as it may handle resource dispose.
// We only need to wait for all commands submitted during the main gpu loop to be processed.
_gpuDoneEvent.WaitOne();
_gpuDoneEvent.Dispose();
nvidiaStutterWorkaround?.Join();
Exit();
}