Namespace in reactor_core.js

Graphics.FPSCounter

6 functions in 4 groups · hide internal

Core runtime: data, input and the ReactorEvents feed.

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 source
Graphics.FPSCounter.prototype.initialize()

Sets up a new instance.

_createElements

method internal source
Graphics.FPSCounter.prototype._createElements()

Creates the elements.

Actions

startTick

method source
Graphics.FPSCounter.prototype.startTick()

Starts the tick.

endTick

method source
Graphics.FPSCounter.prototype.endTick(presented = true)

Count new pictures, rather than ticker callbacks which can reuse the same world frame.

Updating & Drawing

_update

method internal source
Graphics.FPSCounter.prototype._update()

Update.

Other

switchMode

method source
Graphics.FPSCounter.prototype.switchMode()

Switch mode.