Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Debug

Debug statistics and flags for Excalibur. If polling these values, it would be best to do so on the postupdate event for Engine, after all values have been updated during a frame.

Hierarchy

  • Debug

Implements

Index

Constructors

Properties

Object literals

Constructors

constructor

  • Parameters

    Returns Debug

Properties

Private _engine

_engine: Engine

Object literals

stats

stats: object

Performance statistics

currFrame

currFrame: FrameStats = new FrameStats()

Current frame statistics. Engine reuses this instance, use FrameStats.clone to copy frame stats. Best accessed on [Events.postframe] event. See IFrameStats

prevFrame

prevFrame: FrameStats = new FrameStats()

Previous frame statistics. Engine reuses this instance, use FrameStats.clone to copy frame stats. Best accessed on [Events.preframe] event. Best inspected on engine event preframe. See IFrameStats