mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-18 06:10:07 +00:00
Use regular VSync when enabled because adaptive VSync still tears
This commit is contained in:
@@ -403,13 +403,8 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
if (params->enableVsync) {
|
if (params->enableVsync) {
|
||||||
// Try to use adaptive VSYNC unless we're using frame pacing.
|
SDL_GL_SetSwapInterval(1);
|
||||||
// Frame pacing relies on us blocking in renderFrame() to
|
m_BlockingSwapBuffers = true;
|
||||||
// match the display refresh rate.
|
|
||||||
if (params->enableFramePacing || SDL_GL_SetSwapInterval(-1)) {
|
|
||||||
SDL_GL_SetSwapInterval(1);
|
|
||||||
m_BlockingSwapBuffers = true;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
SDL_GL_SetSwapInterval(0);
|
SDL_GL_SetSwapInterval(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user