Fps

Explanation
The fps variable gets the number of steps executed per second, it is an indication of the speed of the game on a certain machine.

Usage
(using fps to check if running realtime, and responding) When automatic redraw is turned off (false), you can check if your game is running real-time by comparing this to room_speed. You can calculate and control the real FPS, by using this code inside an object:

start: alarm[0]=1 alarm[1]=1 room_speed=600 drws=0 trueFPS=0 set_automatic_draw(false) upd_freq=1 timeout=10

draw: drws+=1

alarm[0]: trueFPS=drws*upd_freq drws=0 alarm[0]=room_speed/upd_freq

alarm[1]: screen_redraw if fps=room_speed && timeout>1 then timeout-=1 alarm[1]=timeout