PerfStatsOptions

Extends: roAssociativeArray

Options for BGE.Debug.PerfStats. Every field is optional.

Properties

  • stageNames (Array.<string>) — Only these stages, in this order (default: every stage the frames report)
  • percentiles (Array.<float>) — Frame time percentiles to report, 0 to 1 (default [0.5, 0.9]); 0.5 prints as "med"
  • spikeFactor (float) — A frame over spikeFactor times the median frame time counts as a spike (default 1.5)
  • runId (string) — Added to the summary and the printed line, to tell runs apart in a log (default "")