Notice: Undefined index: is_suspicious in /mnt/web218/a3/28/510129628/htdocs/forum/Sources/Subs_badbehavior_bbc.php on line 26 GLBasic User Manual

GLBasic User Manual

Main sections

LIMITFPS

LIMITFPS n#, vsync%



This command is for controlling your program's timing. It allows you to set the maximum number of frames per second that the screen will refresh at.
You can use this command to do things like slowing down your application, or making its intro run faster.

The vsync% parameter lets you choose if you want to synchronize the screen swap with the monitor refresh rate. This is not working on all platforms.


Sample:
 
LIMITFPS 12
FOR i=0 TO 640
PRINT "*", i, 100
SHOWSCREEN
NEXT

See also...