logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS - A variable controlling whether all window operations will block

Availability

       This hint is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10           SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS(3)

Description

       Window systems that run asynchronously may not have the results of window operations that resize or  move
       the  window  applied immediately upon the return of the requesting function. Setting this hint will cause
       such operations to block after every call until the pending operation has completed. Setting this to  '1'
       is the equivalent of calling

       SDL_SyncWindow () after every function call.

       Be  aware that amount of time spent blocking while waiting for window operations to complete can be quite
       lengthy, as animations may have to complete, which can take upwards of multiple seconds in some cases.

       The variable can be set to the following values:

       • "0": Window operations are non-blocking. (default)

       • "1": Window operations will block until completed.

       This hint can be set anytime.

Header File

       Defined in SDL3/SDL_hints.h

Name

       SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS  -  A variable controlling whether all window operations will block
       until complete.

Synopsis

#include"SDL3/SDL.h"#defineSDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONSSDL_VIDEO_SYNC_WINDOW_OPERATIONS"

See Also