PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Framerate question

Hi!

is it possible to have OnNextFrame called 300 times a second or only 1 time a second? (I mean not synched with the display, which seems the default behaviour)

TIA
Kak
Hi,

You can adjust the maxfps setting in the OnFrameworkConfig callback of the framework. This setting can be adjusted later (during runtime) in ecd.maincfg->maxfps. This will have influence on how many times OnNextFrame is called.

To get the highest amount of fps possible on your device, set maxfps to 0 and smartfps to false.
works like a charm, thank you! :)