Documentación de Real

Miscellaneous

getfpscap

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

Sintaxis

getfpscap(): number
Alias get_fps_cap

Retornos

NombreTipoDescripción
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Descripción

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

Llamalo sin parametros. La funcion lee el contexto necesario desde el estado actual de runtime.

Devuelve fpsCap (number). Usa la tabla de retornos para separar valores correctos, resultados nil y errores recuperables.

Ejemplo

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

local fpsCap = getfpscap()
print(fpsCap)