fps (Game Maker)

(Game Maker 6.1, 7)

fps - actual number of frames drawn per second


fps contains the actual number of frames drawn per second, unlike room_speed which technically contains the maximum number of frames to be drawn per second (whether it actually does or not is dependent on the speed of the computer running your game).


Example of Use

room_caption = string(fps);

This will display the frames per second in the room_caption.

Displaying Lag

room_caption = string(room_speed - fps);

This will show the lag in the room_caption.

Related Pages

Similar To

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.