diff options
| author | 2020-04-05 09:48:53 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:36:09 -0400 | |
| commit | 528b19a84287167d7699465e495b196d216b99db (patch) | |
| tree | c3ac61644c1a11fd1cf5ceeb70d1c9f5d4a00aa3 /src/core/cpu_manager.cpp | |
| parent | Dynarmic Interface: don't clear cache if JIT has not been created. (diff) | |
| download | yuzu-528b19a84287167d7699465e495b196d216b99db.tar.gz yuzu-528b19a84287167d7699465e495b196d216b99db.tar.xz yuzu-528b19a84287167d7699465e495b196d216b99db.zip | |
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 63c578852..32afcf3ae 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp | |||
| @@ -337,6 +337,7 @@ void CpuManager::RunThread(std::size_t core) { | |||
| 337 | } | 337 | } |
| 338 | MicroProfileOnThreadCreate(name.c_str()); | 338 | MicroProfileOnThreadCreate(name.c_str()); |
| 339 | Common::SetCurrentThreadName(name.c_str()); | 339 | Common::SetCurrentThreadName(name.c_str()); |
| 340 | Common::SetCurrentThreadPriority(Common::ThreadPriority::High); | ||
| 340 | auto& data = core_data[core]; | 341 | auto& data = core_data[core]; |
| 341 | data.enter_barrier = std::make_unique<Common::Event>(); | 342 | data.enter_barrier = std::make_unique<Common::Event>(); |
| 342 | data.exit_barrier = std::make_unique<Common::Event>(); | 343 | data.exit_barrier = std::make_unique<Common::Event>(); |