mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-20 00:20:38 +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:
@@ -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