FrameStats
Implements
Index
Constructors
constructor
Returns FrameStats
Accessors
publicactors
Gets the frame's actor statistics
Returns FrameActorStats
publicdelta
Gets the frame's delta (time since last frame)
Returns number
publicduration
Gets the frame's duration statistics
Returns FrameDurationStats
publicfps
Gets the frame's frames-per-second (FPS)
Returns number
publicgraphics
Gets the frame's graphics statistics
Returns GraphicsStatistics
publicid
Gets the frame's id
Returns number
Sets the frame's id
Parameters
value: number
Returns void
publicphysics
Gets the frame's physics statistics
Returns PhysicsStats
Methods
publicclone
Provides a clone of this instance.
Returns FrameStats
publicreset
Zero out values or clone other IFrameStat stats. Allows instance reuse.
Parameters
optionalotherStats: FrameStatistics
Optional stats to clone
Returns void
Implementation of a frame's stats. Meant to have values copied via [[FrameStats.reset]], avoid creating instances of this every frame.