class flixel.system.debug.Stats extends Window

Available on all platforms

A simple performance monitor widget, for use in the debugger overlay. * * @author Adam "Atomic" Saltsman * @author Anton Karlov

Class Fields

static var DECIMALS:Int

static var LABEL_COLOR:Int

static var TEXT_SIZE:Int

Instance Fields

function new():Void

Creates a new window with fps and memory graphs, as well as other useful stats for debugging.

function activeObjects(Count:Int):Void

How many objects were updated. * *

Count

How many objects were updated.

function averageFps():Float

Calculates average game fps (takes whole time the game is running).

function currentFps():Float

Calculates current game fps.

function currentMem():Float

Current RAM consumtion.

function destroy():Void

Clean up memory.

function flixelDraw(Time:Int):Void

How long rendering took. * *

Time

How long this render took.

function flixelUpdate(Time:Int):Void

How long updates took. * *

Time

How long this update took.

function intervalTime():Float

Time since perfomance monitoring started.

function onFocus():Void

Re-enables tracking of the stats.

function onFocusLost():Void

Pauses tracking of the stats.

function runningTime():Float

Application life time.

function start():Void

Starts Stats window update logic

function stop():Void

Stops Stats window

function update():Void

Called each frame, but really only updates once every second or so, to save on performance. * Takes all the data in the accumulators and parses it into useful performance data.

function visibleObjects(Count:Int):Void

How many objects were rendered. * *

Count

How many objects were rendered.