mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Update blocking swap buffer opt-out comment
This commit is contained in:
@@ -602,10 +602,12 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
SDL_GL_SetSwapInterval(1);
|
SDL_GL_SetSwapInterval(1);
|
||||||
|
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 15) && defined(SDL_VIDEO_DRIVER_KMSDRM)
|
#if SDL_VERSION_ATLEAST(2, 0, 15) && defined(SDL_VIDEO_DRIVER_KMSDRM)
|
||||||
// The SDL KMSDRM backend already enforces double buffering (due to
|
// We don't use the fence to reduce latency on KMSDRM
|
||||||
// SDL_HINT_VIDEO_DOUBLE_BUFFER=1), so calling glFinish() after
|
// because it can have severe performance impacts when
|
||||||
// SDL_GL_SwapWindow() will block an extra frame and lock rendering
|
// running on slow GPUs where the frame time exceeds
|
||||||
// at 1/2 the display refresh rate.
|
// the video stream's frame interval. The latency
|
||||||
|
// reduction is also less critical without a compositor
|
||||||
|
// adding latency too.
|
||||||
if (info.subsystem != SDL_SYSWM_KMSDRM)
|
if (info.subsystem != SDL_SYSWM_KMSDRM)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user