ShowFps
Extends: Control
Source: ShowFps.ts:18
Frames per second(FPS) display control. It looks like a map button in the top right corner and shows the current frame rate instead of an icon.
Note that the rate is measured by the control itself and not taken from Handler#deltaTime, which is clamped and does not represent the real frame time.
Constructor
new ShowFps(options): ShowFpsInstance Methods
oninit()
Inherited from Control#oninit
Overrides: Control#oninit
Control initialization function have to be overridden.
onadd()
Inherited from Control#onadd
Overrides: Control#onadd
Control renderer assigning function have to be overridden.
onremove()
Inherited from Control#onremove
Overrides: Control#onremove
Control remove function have to be overridden.
onactivate()
Inherited from Control#onactivate
Overrides: Control#onactivate
Control activation function have to be overridden.
ondeactivate()
Inherited from Control#ondeactivate
Overrides: Control#ondeactivate
Control deactivation function have to be overriden.
addTo()
Inherited from Control#addTo
Overrides: Control#addTo
Assign renderer to the control.
remove()
Inherited from Control#remove
Overrides: Control#remove
Removes control.
activate()
Inherited from Control#activate
Overrides: Control#activate
Activate control.
deactivate()
Inherited from Control#deactivate
Overrides: Control#deactivate
Deactivate control.
isActive()
Inherited from Control#isActive
Overrides: Control#isActive
Is control active.
Instance Fields
name
Inherited from Control#name
Overrides: Control#name
Returns control name.
Returns
string