Miscellaneous

getfpscap

Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.

Sintaxe

getfpscap(): number
Aliases get_fps_cap

Retornos

NomeTipoDescrição
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Descrição

Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.

Chame sem parametros. A funcao le o contexto necessario do estado atual da runtime.

Retorna fpsCap (number). Use a tabela de retornos para separar valores bem sucedidos, nil e erros recuperaveis.

Exemplo

Read the FPS cap value currently represented by the TaskScheduler cap field.

local fpsCap = getfpscap()
print(fpsCap)