Package | org.flixel.system.debug |
Class | public class Perf |
Inheritance | Perf FlxWindow flash.display.Sprite |
Property | Defined By | ||
---|---|---|---|
_activeObject : Array | Perf | ||
_background : Bitmap
Window display element. | FlxWindow | ||
_bounds : Rectangle
Controls where the window is allowed to be positioned. | FlxWindow | ||
_drag : Point
Helper for interaction. | FlxWindow | ||
_dragging : Boolean
Helper for interaction. | FlxWindow | ||
_flash : Array | Perf | ||
_flashMarker : uint | Perf | ||
_flixelDraw : Array | Perf | ||
_flixelDrawMarker : uint | Perf | ||
_flixelUpdate : Array | Perf | ||
_flixelUpdateMarker : uint | Perf | ||
_handle : Bitmap
Window display element. | FlxWindow | ||
_header : Bitmap
Window display element. | FlxWindow | ||
_height : uint
Height of the window. | FlxWindow | ||
ImgHandle : Class | FlxWindow | ||
_lastTime : int | Perf | ||
_objectMarker : uint | Perf | ||
_overHandle : Boolean
Helper for interaction. | FlxWindow | ||
_overHeader : Boolean
Helper for interaction. | FlxWindow | ||
_resizable : Boolean
Helper for interaction. | FlxWindow | ||
_resizing : Boolean
Helper for interaction. | FlxWindow | ||
_shadow : Bitmap
Window display element. | FlxWindow | ||
_text : TextField | Perf | ||
_title : TextField
Window display element. | FlxWindow | ||
_updateTimer : int | Perf | ||
_visibleObject : Array | Perf | ||
_visibleObjectMarker : uint | Perf | ||
_width : uint
Width of the window. | FlxWindow |
Method | Defined By | ||
---|---|---|---|
Perf(Title:String, Width:Number, Height:Number, Resizable:Boolean = true, Bounds:Rectangle = null, BGColor:uint = 0x7f7f7f7f, TopColor:uint = 0x7f000000)
Creates flashPlayerFramerate new window object. | Perf | ||
activeObjects(Count:int):void
Keep track of how many objects were updated. | Perf | ||
destroy():void [override]
Clean up memory. | Perf | ||
flash(Time:int):void
Keep track of how long the Flash player and browser take. | Perf | ||
flixelDraw(Time:int):void
Keep track of how long renders take. | Perf | ||
flixelUpdate(Time:int):void
Keep track of how long updates take. | Perf | ||
reposition(X:Number, Y:Number):void
Change the position of the window. | FlxWindow | ||
resize(Width:Number, Height:Number):void
Resize the window. | FlxWindow | ||
update():void
Called each frame, but really only updates once every second or so, to save on performance. | Perf | ||
visibleObjects(Count:int):void
Keep track of how many objects were updated. | Perf |
_activeObject | property |
protected var _activeObject:Array
_flash | property |
protected var _flash:Array
_flashMarker | property |
protected var _flashMarker:uint
_flixelDraw | property |
protected var _flixelDraw:Array
_flixelDrawMarker | property |
protected var _flixelDrawMarker:uint
_flixelUpdate | property |
protected var _flixelUpdate:Array
_flixelUpdateMarker | property |
protected var _flixelUpdateMarker:uint
_lastTime | property |
protected var _lastTime:int
_objectMarker | property |
protected var _objectMarker:uint
_text | property |
protected var _text:TextField
_updateTimer | property |
protected var _updateTimer:int
_visibleObject | property |
protected var _visibleObject:Array
_visibleObjectMarker | property |
protected var _visibleObjectMarker:uint
Perf | () | Constructor |
public function Perf(Title:String, Width:Number, Height:Number, Resizable:Boolean = true, Bounds:Rectangle = null, BGColor:uint = 0x7f7f7f7f, TopColor:uint = 0x7f000000)
Creates flashPlayerFramerate new window object. This Flash-based class is mainly (only?) used by FlxDebugger
.
Title:String — The name of the window, displayed in the header bar.
| |
Width:Number — The initial width of the window.
| |
Height:Number — The initial height of the window.
| |
Resizable:Boolean (default = true ) — Whether you can change the size of the window with flashPlayerFramerate drag handle.
| |
Bounds:Rectangle (default = null ) — A rectangle indicating the valid screen area for the window.
| |
BGColor:uint (default = 0x7f7f7f7f ) — What color the window background should be, default is gray and transparent.
| |
TopColor:uint (default = 0x7f000000 ) — What color the window header bar should be, default is black and transparent.
|
activeObjects | () | method |
public function activeObjects(Count:int):void
Keep track of how many objects were updated.
Parameters
Count:int — How many objects were updated.
|
destroy | () | method |
override public function destroy():void
Clean up memory.
flash | () | method |
public function flash(Time:int):void
Keep track of how long the Flash player and browser take.
Parameters
Time:int — How long Flash/browser took.
|
flixelDraw | () | method |
public function flixelDraw(Time:int):void
Keep track of how long renders take.
Parameters
Time:int — How long this render took.
|
flixelUpdate | () | method |
public function flixelUpdate(Time:int):void
Keep track of how long updates take.
Parameters
Time:int — How long this update took.
|
update | () | method |
public 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.
visibleObjects | () | method |
public function visibleObjects(Count:int):void
Keep track of how many objects were updated.
Parameters
Count:int — How many objects were updated.
|