Renderer.setVSync

Wraps SDL_RenderSetVSync which sets whether vertical synchronization should be enabled

class Renderer
@trusted
static if(sdlSupport >= SDLSupport.v2_0_18)
void
setVSync
(
bool vSync
)

Parameters

vSync bool

true to enable v-sync, otherwise false

Throws

dsdl2.SDLException if failed to set v-sync

Meta