FPSCounter
| Kind | class |
| Package | debug |
| Full name | debug.FPSCounter |
| Source | source/debug/FPSCounter.hx |
| Extends | TextField |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
currentFPS | Float | no | — | property (default, null) |
memory | Float | no | — | property (get, never) |
align | TextFormatAlign | no | — | property (default, set) |
timeoutDelay | Float | no | 50 | — |
Public methods
new (constructor)
function new(x:Float = 10, y:Float = 10, color:Int = 0x00000000)
| Parameter | Type | Default |
|---|---|---|
x (optional) | Float | 10 |
y (optional) | Float | 10 |
color (optional) | Int | 0x00000000 |
updateColors
function updateColors():Void
updateText
function updateText():Void // so people can override it in hscript
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
lastText | String | no |
outlineDirty | Bool | no |
_outlineTimer | Float | no |
mempeak | Float | no |
_framesPassed | Int | no |
_updateClock | Float | no |
_previousTime | Float | no |
timeColor | Float | no |
_lastRainbowPhase | Float | no |
fpsMultiplier | Float | no |
deltaTimeout | Float | no |
now | Float | no |
| Method |
|---|
inline function get_memory():Float |
inline function get_mempeak():Float |
function onEnterFrame(e:Event):Void |
function set_align(val) |