Create a new MiniStats instance.
The application.
Optionaloptions: MiniStatsOptions = ...
Options for the MiniStats instance.
Gets the enabled state of the MiniStats overlay.
Sets the enabled state of the MiniStats overlay.
StaticgetReturns the default options for MiniStats. The default options configure the overlay to show the following graphs:
OptionalextraStats: string[] = []
Optional array of preset names from MiniStats.statPresets to include. The preset stats are inserted after the 'Frame' entry. Can be: 'gsplats', 'gsplatsCopy'.
The default options for MiniStats.
MiniStats is a small graphical overlay that displays realtime performance metrics. By default, it shows CPU and GPU utilization, frame timings and draw call count. It can also be configured to display additional graphs based on data collected into
AppBase#stats.The detailed per-frame sub-timings — script, anim, physics and gsplat sort — are measured in every build. The render timing is the exception: its start timestamp is only recorded in the debug and profiler builds, so in the release build the render graph reports the time elapsed since page load rather than a frame time. Import from
'playcanvas/debug'or'playcanvas/profiler'for a meaningful render figure.