MaxFps

Category: Window and Display

Back to System Functions


Signature

MaxFps(fps As Integer)

Returns

Void

Description

Sets the maximum frame rate allowed by the runtime.

When the current frame finishes early, the app sleeps before the next FrameDelta measurement so Flip does not exceed the requested rate. Pass 0 or a negative value to remove the limit.

Example

MaxFps(60) Graphics(640, 480)