Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrameStats

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

Hierarchy

  • FrameStats

Implements

Index

Accessors

actors

delta

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

    internal

    Returns number

  • Sets the frame's delta (time since last frame). Internal use only.

    internal

    Parameters

    • value: number

    Returns void

duration

fps

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

    internal

    Returns number

  • Sets the frame's frames-per-second (FPS). Internal use only.

    internal

    Parameters

    • value: number

    Returns void

id

  • get id(): number
  • set id(value: number): void

physics

Methods

clone

reset