mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-22 16:08:45 +00:00
Batch delayed flushes to improve performance on macOS
This commit is contained in:
@@ -249,7 +249,7 @@ private slots:
|
||||
void handleMdnsServiceResolved(MdnsPendingComputer* computer, QVector<QHostAddress>& addresses);
|
||||
|
||||
private:
|
||||
void saveHosts();
|
||||
void saveHosts(bool immediate);
|
||||
|
||||
QHostAddress getBestGlobalAddressV6(QVector<QHostAddress>& addresses);
|
||||
|
||||
@@ -266,5 +266,10 @@ private:
|
||||
DelayedFlushThread* m_DelayedFlushThread;
|
||||
QMutex m_DelayedFlushMutex;
|
||||
QWaitCondition m_DelayedFlushCondition;
|
||||
bool m_NeedsDelayedFlush;
|
||||
QWaitCondition m_ImmediateFlushCondition;
|
||||
enum class FlushType {
|
||||
None,
|
||||
Delayed,
|
||||
Immediate
|
||||
} m_NeedsFlush;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user