gb.update

Description

bool gb.update()

gb.update takes care, that the Gamebuino Meta runs at a constant framerate. It will return true whenever a next frame is ready to render. Default framerate: 25FPS, settable via gb.setFrameRate()

It also takes care of updating buttons, sending out the screen, sound, and just everything!

Parameters

none

Returns

bool: true if it is time to render the next frame

Example

#include <Gamebuino-Meta.h>

void setup() {
  gb.begin();
}


void loop() {
  if (gb.update()) {
    // this code will run at a steady framerate (default: 25 FPS)
  }
}