mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 16:10:35 +00:00
Ensure there are enough hwframes for Pacer
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
#include <QMutex>
|
||||
#include <QWaitCondition>
|
||||
|
||||
// The maximum number of frames pacer will ever hold is:
|
||||
// - 3 frames in the pacing queue
|
||||
// - 1 frame removed from the render queue in the process of rendering
|
||||
// - 1 frame for deferred free
|
||||
#define PACER_MAX_OUTSTANDING_FRAMES (3 + 1 + 1)
|
||||
|
||||
class IVsyncSource {
|
||||
public:
|
||||
virtual ~IVsyncSource() {}
|
||||
|
||||
Reference in New Issue
Block a user