mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 22:40:24 +00:00
Require several consecutive long render times to drop a frame
This commit is contained in:
1 parent
58b77cf589
commit
1f972b1828
2 files changed
+37
-16
No files matched your search
@@ -27,12 +27,14 @@ public:
|
||||
bool isUsingFrameQueue();
|
||||
|
||||
private:
|
||||
void addRenderTimeToHistory(int renderTime);
|
||||
|
||||
void renderFrame(AVFrame* frame);
|
||||
|
||||
QQueue<AVFrame*> m_FrameQueue;
|
||||
QQueue<int> m_FrameQueueHistory;
|
||||
QQueue<int> m_RenderTimeHistory;
|
||||
SDL_SpinLock m_FrameQueueLock;
|
||||
bool m_DropNextFrame;
|
||||
|
||||
IVsyncSource* m_VsyncSource;
|
||||
IFFmpegRenderer* m_VsyncRenderer;
|
||||
|
||||
Reference in new issue
Block a user