What it does
screen.setSyncRate sets SyncRate on a screen object. It takes fps.
Signature
screen.setSyncRate(fps)Arguments
fps
Example · generated
function start() { screen.setSyncRate(30);}screen.setSyncRate is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.