Difference between revisions of "Gb.setFrameRate"

From Gamebuino Wiki
Jump to: navigation, search
(Created page with "Set how many times the Gamebuino refreshes the display. Has an influence on the gb.update() method.")
 
({{lowercase}} title template added)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Set how many times the Gamebuino refreshes the display. Has an influence on the gb.update() method.
+
{{lowercase}}
 +
__NOTOC__
 +
== Description ==
 +
Changes how many times per second the program runs.
 +
 
 +
== Syntax ==
 +
<pre>gb.setFrameRate(fps);</pre>
 +
 
 +
== Parameters ==
 +
* fps (byte): default value is 20 updates/frames per second.
 +
 
 +
== Returns ==
 +
none
 +
 
 +
== Example ==
 +
 
 +
== See also ==
 +
*[[gb.update]]

Latest revision as of 2014-05-20T21:00:59

Description

Changes how many times per second the program runs.

Syntax

gb.setFrameRate(fps);

Parameters

  • fps (byte): default value is 20 updates/frames per second.

Returns

none

Example

See also