Package | com.hexagonstar.util.debug |
Class | public class FPSMeter |
Inheritance | FPSMeter ![]() |
Property | Defined 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 |
Method | Defined 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 |
Constant | Defined by | ||
---|---|---|---|
FPS_UPDATE : String = "fpsUpdate" [static]
The FPSMeter.FPS_UPDATE constant defines the value of the type property
of an fpsUpdate event object.
| FPSMeter |
fps | property |
fps:int
[read-only]Returns the current FPS.
Implementation public function get fps():int
frt | property |
frt:int
[read-only]Returns the time that the current frame needed to render.
Implementation public function get frt():int
FPSMeter | () | constructor |
public function FPSMeter(stage:Stage, pollInterval:int = 500)
Constructs a new FPSMeter instance.
Parametersstage: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.
|
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.
FPS_UPDATE | constant |
public static const FPS_UPDATE:String = "fpsUpdate"
The FPSMeter.FPS_UPDATE constant defines the value of the type property of an fpsUpdate event object.