summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-05 15:48:53 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:36:09 +0200
commit528b19a84287167d7699465e495b196d216b99db (patch)
treec3ac61644c1a11fd1cf5ceeb70d1c9f5d4a00aa3 /src/core
parentDynarmic Interface: don't clear cache if JIT has not been created. (diff)
downloadyuzu-528b19a84287167d7699465e495b196d216b99db.tar
yuzu-528b19a84287167d7699465e495b196d216b99db.tar.gz
yuzu-528b19a84287167d7699465e495b196d216b99db.tar.bz2
yuzu-528b19a84287167d7699465e495b196d216b99db.tar.lz
yuzu-528b19a84287167d7699465e495b196d216b99db.tar.xz
yuzu-528b19a84287167d7699465e495b196d216b99db.tar.zst
yuzu-528b19a84287167d7699465e495b196d216b99db.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_timing.cpp1
-rw-r--r--src/core/cpu_manager.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index b02119494..032b29e33 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -48,6 +48,7 @@ void CoreTiming::ThreadEntry(CoreTiming& instance) {
std::string name = "yuzu:HostTiming";
MicroProfileOnThreadCreate(name.c_str());
Common::SetCurrentThreadName(name.c_str());
+ Common::SetCurrentThreadPriority(Common::ThreadPriority::VeryHigh);
instance.on_thread_init();
instance.ThreadLoop();
}
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) {
}
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>();