mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Remove async and non-blocking page flip support
It doesn't work well in practice for a few major reasons: - It can result in the decoder writing on DMA-BUFs being used by the display - It can generate page flip events that collide with Qt/SDL - It can stall the decoder if the DMA-BUF has a fence on it from the display driver
This commit is contained in:
@@ -164,7 +164,6 @@ DrmRenderer::~DrmRenderer()
|
||||
m_PropSetter.disablePlane(m_OverlayPlanes[i]);
|
||||
}
|
||||
m_PropSetter.apply();
|
||||
m_PropSetter.waitForFlipCompletion();
|
||||
}
|
||||
|
||||
for (int i = 0; i < k_SwFrameCount; i++) {
|
||||
@@ -495,7 +494,7 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||
atomic = true;
|
||||
}
|
||||
|
||||
m_PropSetter.initialize(m_DrmFd, atomic, !params->enableVsync);
|
||||
m_PropSetter.initialize(m_DrmFd, atomic);
|
||||
|
||||
drmModePlaneRes* planeRes = drmModeGetPlaneResources(m_DrmFd);
|
||||
if (planeRes == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user