Ryujinx/src/Ryujinx.Headless.SDL2
riperiperi c6676007bf
GPU: Dispose Renderer after running deferred actions (#5144)
* GAL: Dispose Renderer after running deferred actions

Deferred actions from disposing physical memory instances always dispose the resources in their caches. The renderer can't be disposed before these resources get disposed, otherwise the dispose actions will not actually run, and the ThreadedRenderer may get stuck trying to enqueue too many commands when there is nothing consuming them.

This should fix most instances of the emulator freezing on close.

* Wait for main render commands to finish, but keep RenderThread alive til dispose

* Address some feedback.

* No parameterize needed

* Set thread name as part of constructor

* Port to Ava and SDL2
2023-05-31 21:43:20 +00:00
..
OpenGL Add hide-cursor command line argument & always hide cursor option (#4613) 2023-05-02 03:29:47 +02:00
Vulkan Add hide-cursor command line argument & always hide cursor option (#4613) 2023-05-02 03:29:47 +02:00
HeadlessDynamicTextInputHandler.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
HeadlessHostUiTheme.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
Options.cs macOS Headless Fixes (#5167) 2023-05-31 09:08:50 +02:00
Program.cs macOS Headless Fixes (#5167) 2023-05-31 09:08:50 +02:00
Ryujinx.bmp Move solution and projects to src 2023-04-27 23:51:14 +02:00
Ryujinx.Headless.SDL2.csproj macOS Headless Fixes (#5167) 2023-05-31 09:08:50 +02:00
SDL2Mouse.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
SDL2MouseDriver.cs Add hide-cursor command line argument & always hide cursor option (#4613) 2023-05-02 03:29:47 +02:00
StatusUpdatedEventArgs.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
WindowBase.cs GPU: Dispose Renderer after running deferred actions (#5144) 2023-05-31 21:43:20 +00:00