Create a new MiniStats instance.
The application.
Optional
options: {Options for the MiniStats instance.
Optional
cpu?: { enabled?: boolean; watermark?: number }CPU graph options.
Optional
enabled?: booleanWhether to show the CPU graph.
Optional
watermark?: numberWatermark - shown as a line on the graph, useful for displaying a budget.
Optional
gpu?: { enabled?: boolean; watermark?: number }GPU graph options.
Optional
enabled?: booleanWhether to show the GPU graph.
Optional
watermark?: numberWatermark - shown as a line on the graph, useful for displaying a budget.
Optional
sizes?: { graphs?: boolean; height?: number; spacing?: number; width?: number }[]Sizes of area to render individual graphs in and spacing between individual graphs.
Optional
startSizeIndex?: numberIndex into sizes array for initial setting.
Optional
stats?: {Array of options to render additional graphs based on stats collected into AppBase#stats.
Optional
textRefreshRate?: numberRefresh rate of text stats in ms.
Gets the enabled state of the MiniStats overlay.
Sets the enabled state of the MiniStats overlay.
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.