mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-13 15:52:16 +02:00
Make realtime scheduling less aggressive
On the Wine side. Instead of always having it enabled and disabling it when it could potentially hurt (i.e. when handling GUI related things), we'll now only enable it when it's potentially beneficial. This way we don't have to constantly switch scheduling policies on the GUI thread.
This commit is contained in:
@@ -103,13 +103,7 @@ GroupBridge::GroupBridge(boost::filesystem::path group_socket_path)
|
||||
logger.async_log_pipe_lines(stderr_redirect.pipe, stderr_buffer,
|
||||
"[STDERR] ");
|
||||
|
||||
stdio_handler = Win32Thread([&]() {
|
||||
// In case a plugin generates a lot of FIXMEs relaying this IO with
|
||||
// realtime scheduling could in theory cause latency issues
|
||||
set_realtime_priority(false);
|
||||
|
||||
stdio_context.run();
|
||||
});
|
||||
stdio_handler = Win32Thread([&]() { stdio_context.run(); });
|
||||
}
|
||||
|
||||
GroupBridge::~GroupBridge() noexcept {
|
||||
|
||||
Reference in New Issue
Block a user