A variable controlling whether the X Synchronization Extension is enabled.
Defined in <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_X11_ENABLE_XSYNC_EXT "SDL_VIDEO_X11_ENABLE_XSYNC_EXT"If set, this can result in smoother window resizing when rendering using OpenGL, however, there are some conditions:
SDL_WINDOW_OPENGL flag (windows using an SDL OpenGL renderer have this automatically set).SDL_GL_SwapWindow() (SDL_RenderPresent() calls this internally for OpenGL renderers as well).Enabling this and presenting via an external mechanism will result in sync requests not being acked, and hangs and other odd window behavior may result.
The variable can be set to the following values:
This hint should be set before creating a window.
This hint is available since SDL 3.4.10.