Page 1 of 1

gb.frameDurationMicros ?

PostPosted: Tue May 20, 2014 8:46 am
by albertinjo
Lately I managed to make my own menu and popup screen. I was playing with some gamebuino library functions and I called the gb.frameDurationMicros function. It returns a big number and I dont seem to understand what it represents. Does it have to do something with framerate?

Re: gb.frameDurationMicros ?

PostPosted: Tue May 20, 2014 9:02 am
by rodot
frameDurationMicros is supposed to be the time it took to render the last frame in number of microseconds. It's used in the function getCpuLoad() which give the % of CPU used.

Although I'm not sure if it's correctly implemented as things has moved in the library since I added that. I'll check it soon (while I write the reference page).