mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 16:10:35 +00:00
Drop a frame if the rendering time exceeds the v-sync period
This commit is contained in:
@@ -27,9 +27,12 @@ public:
|
||||
bool isUsingFrameQueue();
|
||||
|
||||
private:
|
||||
void renderFrame(AVFrame* frame);
|
||||
|
||||
QQueue<AVFrame*> m_FrameQueue;
|
||||
QQueue<int> m_FrameQueueHistory;
|
||||
SDL_SpinLock m_FrameQueueLock;
|
||||
bool m_DropNextFrame;
|
||||
|
||||
IVsyncSource* m_VsyncSource;
|
||||
IFFmpegRenderer* m_VsyncRenderer;
|
||||
|
||||
Reference in New Issue
Block a user