1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
Ryujinx/Ryujinx.Headless.SDL2
riperiperi 9ba73ffbe5
Prefetch capabilities before spawning translation threads. (#3338)
* Prefetch capabilities before spawning translation threads.

The Backend Multithreading only expects one thread to submit commands at a time. When compiling shaders, the translator may request the host GPU capabilities from the backend. It's possible for a bunch of translators to do this at the same time.

There's a caching mechanism in place so that the capabilities are only fetched once. By triggering this before spawning the thread, the async translation threads no longer try to queue onto the backend queue all at the same time.

The Capabilities do need to be checked from the GPU thread, due to OpenGL needing a context to check them, so it's not possible to call the underlying backend directly.

* Initialize the capabilities when setting the GPU thread + missing call in headless

* Remove private variables
2022-05-14 11:58:33 -03:00
..
OpenGL frontend: Add a SDL2 headless window (#2310) 2021-07-06 22:08:44 +02:00
HeadlessDynamicTextInputHandler.cs Inline software keyboard without input pop up dialog (#2180) 2021-10-12 21:54:21 +02:00
HeadlessHostUiTheme.cs Inline software keyboard without input pop up dialog (#2180) 2021-10-12 21:54:21 +02:00
Options.cs Added trace log level (#3096) 2022-02-17 21:08:07 -03:00
Program.cs hle: Some cleanup (#3210) 2022-03-22 20:46:16 +01:00
Ryujinx.Headless.SDL2.csproj infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
SDL2Mouse.cs frontend: Add a SDL2 headless window (#2310) 2021-07-06 22:08:44 +02:00
SDL2MouseDriver.cs frontend: Add a SDL2 headless window (#2310) 2021-07-06 22:08:44 +02:00
StatusUpdatedEventArgs.cs frontend: Add a SDL2 headless window (#2310) 2021-07-06 22:08:44 +02:00
WindowBase.cs Prefetch capabilities before spawning translation threads. (#3338) 2022-05-14 11:58:33 -03:00