> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# imgui.setvsync

> 更新 ImGui renderer 的 vertical synchronization preference。当前 presentation path 会存储此 preference，但不会应用它。

<div className="real-function-page">
  ```lua theme={null}
  imgui.setvsync(enabled: boolean)
  ```

  ## 参数

  <ParamField path={"enabled"} type={"boolean"} required>
    `true` 表示请求 vertical synchronization；`false` 表示请求 uncapped presentation。
  </ParamField>
</div>
