mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
perf(threads): implement adjust_thread_priority for macOS and add set_thread_name (#4605)
This commit is contained in:
@@ -1253,6 +1253,7 @@ namespace video {
|
||||
};
|
||||
|
||||
// Capture takes place on this thread
|
||||
platf::set_thread_name("video::capture");
|
||||
platf::adjust_thread_priority(platf::thread_priority_e::critical);
|
||||
|
||||
while (capture_ctx_queue->running()) {
|
||||
@@ -2292,6 +2293,7 @@ namespace video {
|
||||
});
|
||||
|
||||
// Encoding and capture takes place on this thread
|
||||
platf::set_thread_name("video::capture_sync");
|
||||
platf::adjust_thread_priority(platf::thread_priority_e::high);
|
||||
|
||||
std::vector<std::string> display_names;
|
||||
|
||||
Reference in New Issue
Block a user