Difference between revisions of "Legacy:GetFrameRate"
From Spherical
(created from http://web.archive.org/web/20110803110656/http://www.spheredev.org/wiki/GetFrameRate) |
(filled) |
||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
− | {{Usage|returns=integer | + | {{Usage|returns=integer|func=GetFrameRate}} |
− | |||
− | |||
− | |||
− | |||
==Examples== | ==Examples== | ||
− | ( | + | See the example for [[API:SetFrameRate|SetFrameRate]](). |
==Notes== | ==Notes== | ||
− | ( | + | * The return value of this function is the frames per second currently being used by Sphere's graphics driver for drawing functions. This <var>fps</var> value can be set using [[API:SetFrameRate|SetFrameRate]](). |
+ | * To obtain the frame rate used by the map engine, use [[API:GetMapEngineFrameRate|GetMapEngineFrameRate]](). | ||
==See also== | ==See also== | ||
− | * | + | * [[API:SetFrameRate|SetFrameRate]]() |
− | * | + | * [[API:GetMapEngineFrameRate|GetMapEngineFrameRate]]() |
− | * | + | * [[wikipedia:Frames per second|Frames per second]] on [http://www.wikipedia.org Wikipedia] |
− | |||
{{API:Video/navbox}} | {{API:Video/navbox}} |
Latest revision as of 23:04, 24 June 2013
Get the refresh rate of drawing functions outside the map engine.
Contents
Usage
integer GetFrameRate();
Examples
See the example for SetFrameRate().
Notes
- The return value of this function is the frames per second currently being used by Sphere's graphics driver for drawing functions. This fps value can be set using SetFrameRate().
- To obtain the frame rate used by the map engine, use GetMapEngineFrameRate().