Create a new MiniStats instance.
The application.
Optionaloptions: {Options for the MiniStats instance.
Optionalcpu?: { enabled?: boolean; watermark?: number }CPU graph options.
Optionalenabled?: booleanWhether to show the CPU graph.
Optionalwatermark?: numberWatermark - shown as a line on the graph, useful for displaying a budget.
Optionalgpu?: { enabled?: boolean; watermark?: number }GPU graph options.
Optionalenabled?: booleanWhether to show the GPU graph.
Optionalwatermark?: numberWatermark - shown as a line on the graph, useful for displaying a budget.
Optionalsizes?: { graphs?: boolean; height?: number; spacing?: number; width?: number }[]Sizes of area to render individual graphs in and spacing between individual graphs.
OptionalstartSizeIndex?: numberIndex into sizes array for initial setting.
Optionalstats?: {Array of options to render additional graphs based on stats collected into AppBase#stats.
OptionaltextRefreshRate?: 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.