mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 22:40:24 +00:00
Limit the number of queued frames in Pacer to prevent excessive memory consumption if the renderer gets blocked for a while
This commit is contained in:
1 parent
b6872456cd
commit
e5a8b49c93
2 files changed
+18
No files matched your search
@@ -31,6 +31,8 @@ private:
|
||||
|
||||
void renderFrame(AVFrame* frame);
|
||||
|
||||
void dropFrameForEnqueue(QQueue<AVFrame*>& queue);
|
||||
|
||||
QQueue<AVFrame*> m_RenderQueue;
|
||||
QQueue<AVFrame*> m_PacingQueue;
|
||||
QQueue<int> m_PacingQueueHistory;
|
||||
|
||||
Reference in new issue
Block a user