[client] implemented SGI_video_sync for better frame sync

This commit is contained in:
Geoffrey McRae
2017-12-11 03:02:45 +11:00
parent 31c9693cbf
commit e6a21d1049
2 changed files with 111 additions and 135 deletions

View File

@@ -612,6 +612,11 @@ int run()
FcPatternDestroy(pat);
}
// while this is related to opengl, it must happen before the window is created
// as such it can not be part of the opengl renderer
if (!params.vsync)
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
state.window = SDL_CreateWindow(
"Looking Glass (Client)",
params.center ? SDL_WINDOWPOS_CENTERED : params.x,