Skip to main content

FrameStats

Implementation of a frame's stats. Meant to have values copied via [[FrameStats.reset]], avoid creating instances of this every frame.

Implements

Index

Constructors

constructor

Accessors

publicactors

  • Gets the frame's actor statistics


    Returns FrameActorStats

publicdelta

  • get delta(): number
  • Gets the frame's delta (time since last frame)


    Returns number

publicduration

  • Gets the frame's duration statistics


    Returns FrameDurationStats

publicfps

  • get fps(): number
  • Gets the frame's frames-per-second (FPS)


    Returns number

publicgraphics

  • Gets the frame's graphics statistics


    Returns GraphicsStatistics

publicid

  • get id(): number
  • set id(value: number): void
  • 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

    Returns void