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 2020-04-05 09:48:53 -04:00
parent 7b44187fd2
commit 528b19a842
6 changed files with 60 additions and 0 deletions

View file

@ -337,6 +337,7 @@ void CpuManager::RunThread(std::size_t core) {
}
MicroProfileOnThreadCreate(name.c_str());
Common::SetCurrentThreadName(name.c_str());
Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
auto& data = core_data[core];
data.enter_barrier = std::make_unique<Common::Event>();
data.exit_barrier = std::make_unique<Common::Event>();