mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 00:57:59 -05:00
General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.
This commit is contained in:
@ -86,6 +86,15 @@ private:
|
||||
std::size_t generation = 0; // Incremented once each time the barrier is used
|
||||
};
|
||||
|
||||
enum class ThreadPriority : u32 {
|
||||
Low = 0,
|
||||
Normal = 1,
|
||||
High = 2,
|
||||
VeryHigh = 3,
|
||||
};
|
||||
|
||||
void SetCurrentThreadPriority(ThreadPriority new_priority);
|
||||
|
||||
void SetCurrentThreadName(const char* name);
|
||||
|
||||
} // namespace Common
|
||||
|
Reference in New Issue
Block a user