Volt

setfpscap

Sets the FPS cap for the game.

Syntax

setfpscap(fps: number) -> void

Parameters

ParameterTypeDescription
fpsnumberThe FPS cap to set

Returns

This function does not return a value.

Description

setfpscap sets the maximum frames per second the game will render at. Use 0 to uncap.

Example

-- Cap at 60 FPS
setfpscap(60)

-- Uncap FPS
setfpscap(0)

-- Cap at 144 FPS
setfpscap(144)

Notes

  • Set to 0 for unlimited FPS
  • Higher FPS may increase CPU/GPU usage
  • Default Roblox cap is 60 FPS

On this page