# Sandbox.UI.RootPanel.RenderStatistics

Rendering work for one root and its descendants, including fixed overlays.
Timings measure CPU work, not GPU execution or window presentation.
Preparation values describe the commands being rendered and remain unchanged when those commands are replayed.

- Kind: struct
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`CommandBuildTime`](/api/Sandbox.UI.RootPanel.RenderStatistics/CommandBuildTime): CPU time spent drawing panels, batching instances and preparing the render command list.
- [`CpuTime`](/api/Sandbox.UI.RootPanel.RenderStatistics/CpuTime): Sum of the latest preparation timings and the last render's submission time. Excludes panel ticks, input handling, presentation and time waiting between stages.
- [`DrawCalls`](/api/Sandbox.UI.RootPanel.RenderStatistics/DrawCalls): Direct UI batch, backdrop and CSS layer composite draw calls in the rendered command list. Excludes custom scene draws and passes used to prepare Painter layers or framebuffer grabs.
- [`FrameGrabs`](/api/Sandbox.UI.RootPanel.RenderStatistics/FrameGrabs): Framebuffer grabs recorded for CSS and Painter backdrops, counting a shared grab only once.
- [`FrameNumber`](/api/Sandbox.UI.RootPanel.RenderStatistics/FrameNumber): Engine frame number of the last completed render. Use RenderCount to distinguish an unrendered root.
- [`Instances`](/api/Sandbox.UI.RootPanel.RenderStatistics/Instances): Box and shape instances gathered into UI batches. A panel may contribute multiple instances.
- [`Layers`](/api/Sandbox.UI.RootPanel.RenderStatistics/Layers): CSS panel layers composited into this root. Excludes layers inside individual Painter recordings.
- [`LayoutTime`](/api/Sandbox.UI.RootPanel.RenderStatistics/LayoutTime): CPU time spent evaluating styles, calculating layout and applying the resulting layout.
- [`PanelsCulled`](/api/Sandbox.UI.RootPanel.RenderStatistics/PanelsCulled): Invisible or unlaid-out subtree roots skipped while preparing the rendered command list. Descendants of a skipped subtree are not traversed or counted. GPU clipping is not included.
- [`PanelsRendered`](/api/Sandbox.UI.RootPanel.RenderStatistics/PanelsRendered): Visible panels visited while preparing the rendered command list, including containers without drawing commands.
- [`RenderCount`](/api/Sandbox.UI.RootPanel.RenderStatistics/RenderCount): Number of completed executions of this root's command list over its lifetime. Includes manual, world-panel and offscreen rendering. Rebuilding commands does not increment this.
- [`SubmissionTime`](/api/Sandbox.UI.RootPanel.RenderStatistics/SubmissionTime): CPU time spent executing this root's render command list, including nested lists and custom draws.
