Quick Reference
Setup & Creation 2
| initialize() | Sets up a new instance. |
| _createElements() | Creates the elements. |
Actions 2
| startTick() | Starts the tick. |
| endTick() | Count new pictures, rather than ticker callbacks which can reuse the same world frame. |
Updating & Drawing 1
| _update() | Update. |
Other 1
| switchMode() | Switch mode. |
Setup & Creation
initialize
method sourceGraphics.FPSCounter.prototype.initialize()
Sets up a new instance.
_createElements
method internal sourceGraphics.FPSCounter.prototype._createElements()
Creates the elements.
Actions
startTick
method sourceGraphics.FPSCounter.prototype.startTick()
Starts the tick.
endTick
method sourceGraphics.FPSCounter.prototype.endTick(presented = true)
Count new pictures, rather than ticker callbacks which can reuse the same world frame.
Updating & Drawing
_update
method internal sourceGraphics.FPSCounter.prototype._update()
Update.
Other
switchMode
method sourceGraphics.FPSCounter.prototype.switchMode()
Switch mode.