mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
Use async logging while streaming only
The benefits of reliable output outweigh performance concerns during non-streaming activities.
This commit is contained in:
@@ -417,3 +417,15 @@ int StreamUtils::getDrmFd(bool preferRenderNode)
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
extern QAtomicInt g_AsyncLoggingEnabled;
|
||||
|
||||
void StreamUtils::enterAsyncLoggingMode()
|
||||
{
|
||||
g_AsyncLoggingEnabled.ref();
|
||||
}
|
||||
|
||||
void StreamUtils::exitAsyncLoggingMode()
|
||||
{
|
||||
g_AsyncLoggingEnabled.deref();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user