mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 16:10:35 +00:00
Use presence of a frame after rendering rather than render time for frame dropping
This commit is contained in:
@@ -29,14 +29,11 @@ public:
|
||||
private:
|
||||
static int renderThread(void* context);
|
||||
|
||||
void addRenderTimeToHistory(int renderTime);
|
||||
|
||||
void renderFrame(AVFrame* frame);
|
||||
|
||||
QQueue<AVFrame*> m_RenderQueue;
|
||||
QQueue<AVFrame*> m_PacingQueue;
|
||||
QQueue<int> m_PacingQueueHistory;
|
||||
QQueue<int> m_RenderTimeHistory;
|
||||
QMutex m_FrameQueueLock;
|
||||
QWaitCondition m_RenderQueueNotEmpty;
|
||||
QWaitCondition m_PacingQueueNotEmpty;
|
||||
|
||||
Reference in New Issue
Block a user