GamebuinoClassic archive

Archive of the Gamebuino Classic wiki, recovered from the Wayback Machine (capture 2017-01-06). Read-only.

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)

Example

See also