Window.setVerticalSyncEnabled

Enable or disable vertical synchronization.

Activating vertical synchronization will limit the number of frames displayed to the refresh rate of the monitor. This can avoid some visual artifacts, and limit the framerate to a good value (but not constant across different computers).

Vertical synchronization is disabled by default.

class Window
void
setVerticalSyncEnabled
(
bool enabled
)

Parameters

enabled bool

true to enable v-sync, false to deactivate it

Meta