In this article
Not finding the help you need?
Logging frames-per-second statistics for your app requires the fps-meter
module.
Import FPS Meter Module
Improve this document
Demo Source
Name |
Type |
Description |
addCallback(callback: function) |
number |
Adds a callback function to be called each time FPS data is due to be reported. Returns an unique id which can be used to remove this callback later. |
removeCallback(id: number) |
any |
Removes the callback with the specified id. |
running |
boolean |
Returns a valid indicating whether the frames-per-second meter is currently running. |
start |
void |
Starts the frames-per-second meter. |
stop |
void |
Stops the frames-per-second meter. |