Use presence of a frame after rendering rather than render time for frame dropping
This commit is contained in:
parent
f03d12b677
commit
ab4127f940
2 changed files with 14 additions and 44 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue