Use regular VSync when enabled because adaptive VSync still tears
This commit is contained in:
parent
586a93d7aa
commit
88ed72fdc1
1 changed files with 2 additions and 7 deletions
|
|
@ -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.
|
|
||||||
// Frame pacing relies on us blocking in renderFrame() to
|
|
||||||
// match the display refresh rate.
|
|
||||||
if (params->enableFramePacing || SDL_GL_SetSwapInterval(-1)) {
|
|
||||||
SDL_GL_SetSwapInterval(1);
|
SDL_GL_SetSwapInterval(1);
|
||||||
m_BlockingSwapBuffers = true;
|
m_BlockingSwapBuffers = true;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
SDL_GL_SetSwapInterval(0);
|
SDL_GL_SetSwapInterval(0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue