Add support for "Threaded OpenGL" in the launcher
For Linux, *BSD and Windows (sorry Android and MacOS) there are options to take advantage of what is known as "Threaded OpenGL" in NVidia and AMD drivers. They are set by environment variables and usually controlled in the driver with a whitelists. Keep in mind that OpenMW will likely never be included in that list.
The reason why this is interesting is because OpenMW's renderer is multithreaded and we take great pains to be thread-safe. This is a requirement for use of the described feature.
The idea is that we add an experimental option to enable "Threaded OpenGL" based on platform, so for example, it wouldn't show up on MacOS.
So you have the ability to 'vote' on this as a good feature to have or not by clicking on the thumbs up or thumbs down icon, possibly with comment justification either way.
Windows: From the NV Control Panel on Windows, Description: Allows application to take advantage of multiple CPUs. You would need to add OpenMW to the list and set it to On. Perhaps there is an environment variable we could set so that this isn't necessary.
Linux: To enable threaded optimisation for Mesa (Intel, Radeon, etc.): mesa_glthread=true For Nvidia's Blob: __GL_THREADED_OPTIMIZATIONS=1
Sources:
https://wiki.winehq.org/Performance
https://www.gamingonlinux.com/wiki/Performance_impact_of_Mesa_glthread
https://community.khronos.org/t/threaded-optimization/68597
https://www.youtube.com/watch?v=pkH-HlyVr5I&ab_channel=GAMETEST <-- CEMU testing off/on
Caveat: We need more testing here from Windows/Linux and AMD/Nvidia, also the number of cores you have also plays a role. If you're 4 cores are maxed out, then this would give little gain and could give worse performance. If you have 6 cores, but only maxing out 4 then you would see gains.