diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-05 09:48:53 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:36:09 -0400 |
| commit | fb07639438539dcb161b06bf125933249f5cefc6 (patch) | |
| tree | c3ac61644c1a11fd1cf5ceeb70d1c9f5d4a00aa3 /src/core/cpu_manager.cpp | |
| parent | b5f704017527040387debe044faf9953b9e3543d (diff) | |
General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.
Diffstat (limited to 'src/core/cpu_manager.cpp')
| -rw-r--r-- | src/core/cpu_manager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 63c5788520..32afcf3ae9 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp @@ -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>(); |
