" />

gb.frameCount

DESCRIPTION


This variable is incremented each time gb.update() is called, so it represents the number of frames rendered since the program began running. It should be preferred over millis() to measure time. It can be used for periodic event timing (like an animated bitmap) using modulo.

SYNTAX


int count = gb.frameCount;

PARAMETERS


none

RETURNS


unsigned long: Number of frames rendered since the program began running (20 frames per second by default)

0