imgui.setvsync Synchronous

Set the ImGui vertical-sync preference exposed by this compatibility API. The current implementation stores the boolean but does not change the rendering loop.

Syntax
Luau
imgui.setvsync(enabled: boolean) -> ()

Parameters

Function parameters
ParameterTypeDescription
enabledbooleantrue or false for the stored preference.

Returns

()

No values.

Usage notes

Use setfpscap if you need the separate runtime frame-rate cap; setvsync is not an FPS limiter in this build.

Example

Example
Luau
imgui.setvsync(true)
Kawaii documentation