SyncRate

Family: Core · One form

What it does

SyncRate writes a value: it sets rather than reads. It takes fps (a float) and mode (an integer), and returns nothing.

Syntax

SyncRate(fps float, mode integer)

Parameters

NameType
fpsfloat
modeinteger

Every form returns

nothing

Example · generated

SyncRate(1.0, 1)DO  Sync()LOOP

SyncRate is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

Related commands

200 commands in Core