Skip to content

GXFrameRate

boxgaming edited this page Dec 7, 2021 · 5 revisions

Gets or sets the current frame rate (expressed in frames-per-second or FPS).
The default value for the frame rate is 60.

Syntax

frameRate% = GXFrameRate
GXFrameRate frameRate%

Examples

Example1: Get the current frame rate and then set it to a new value.

' Save the current frame rate
DIM oldFPS AS INTEGER
oldFPS = GXFrameRate

'Set the new frame rate to 90 FPS
GXFrameRate 90

See Also

GXFrame

Clone this wiki locally