Packagecom.hexagonstar.util.debug
Classpublic class FPSMeter
InheritanceFPSMeter Inheritance flash.events.EventDispatcher

FPSMeter can be used to measure the application's framerate and frame render time. This class can be used on it's own to fetch fps/frt information or it is used by the Debug class when calling Debug.monitor().



Public Properties
 PropertyDefined by
  fps : int
[read-only] Returns the current FPS.
FPSMeter
  frt : int
[read-only] Returns the time that the current frame needed to render.
FPSMeter
Public Methods
 MethodDefined by
  
FPSMeter(stage:Stage, pollInterval:int = 500)
Constructs a new FPSMeter instance.
FPSMeter
  
reset():void
Resets the FPSMeter to it's default state.
FPSMeter
  
start():void
Starts FPS/FRT polling.
FPSMeter
  
stop():void
Stops FPS/FRT polling.
FPSMeter
Public Constants
 ConstantDefined by
  FPS_UPDATE : String = "fpsUpdate"
[static] The FPSMeter.FPS_UPDATE constant defines the value of the type property of an fpsUpdate event object.
FPSMeter
Property detail
fpsproperty
fps:int  [read-only]

Returns the current FPS.

Implementation
    public function get fps():int
frtproperty 
frt:int  [read-only]

Returns the time that the current frame needed to render.

Implementation
    public function get frt():int
Constructor detail
FPSMeter()constructor
public function FPSMeter(stage:Stage, pollInterval:int = 500)

Constructs a new FPSMeter instance.

Parameters
stage:Stage — The Stage object for that the FPS is being measured.
 
pollInterval:int (default = 500) — Interval in milliseconds with that the FPS rate is polled.
Method detail
reset()method
public function reset():void

Resets the FPSMeter to it's default state.

start()method 
public function start():void

Starts FPS/FRT polling.

stop()method 
public function stop():void

Stops FPS/FRT polling.

Constant detail
FPS_UPDATEconstant
public static const FPS_UPDATE:String = "fpsUpdate"

The FPSMeter.FPS_UPDATE constant defines the value of the type property of an fpsUpdate event object.