IsVSyncEnabled

Definition

bool IsVSyncEnabled()

Description

This function determines whether the VSync is enabled or not.

Return Value

If VSync is enabled, it returns true, otherwise it returns false.

Example

VSync = false
message = ""

function Init()
    VSync = IsVSyncEnabled()

    if VSync then
          message = string.format("\nVSync is ON")
    else
          message = string.format("\nVSync is OFF")
    end

    PrintConsole(message)
end

function Update()

end
First, we determines whether the VSync is enabled or not. Then we display VSync status in the console using the PrintConsole function.
adminIsVSyncEnabled