General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.

This commit is contained in:
Fernando Sahmkow committed 2020-06-27 11:36:09 -04:00
1 parent b5f7040175
commit fb07639438
6 files changed
+60

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
std::string name = "yuzu:GPU";
MicroProfileOnThreadCreate(name.c_str());
Common::SetCurrentThreadName(name.c_str());
Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
system.RegisterHostThread();
// Wait for first GPU command before acquiring the window context