RenderStatisticsclass

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.

objectRenderStatistics
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.UI.RootPanel.RenderStatistics

Properties12

Showing 12 properties

public System.TimeSpan Sandbox.UI.RootPanel.RenderStatistics.CommandBuildTime { get; set; }PUBLICGETSET

CPU time spent drawing panels, batching instances and preparing the render command list.

Returns:TimeSpan

public System.TimeSpan Sandbox.UI.RootPanel.RenderStatistics.CpuTime { get; set; }PUBLICGETSET

Sum of the latest preparation timings and the last render's submission time. Excludes panel ticks, input handling, presentation and time waiting between stages.

Returns:TimeSpan

public int Sandbox.UI.RootPanel.RenderStatistics.DrawCalls { get; set; }PUBLICGETSET

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.

Returns:int

public int Sandbox.UI.RootPanel.RenderStatistics.FrameGrabs { get; set; }PUBLICGETSET

Framebuffer grabs recorded for CSS and Painter backdrops, counting a shared grab only once.

Returns:int

public ulong Sandbox.UI.RootPanel.RenderStatistics.FrameNumber { get; set; }PUBLICGETSET

Engine frame number of the last completed render. Use RenderCount to distinguish an unrendered root.

Returns:ulong

public int Sandbox.UI.RootPanel.RenderStatistics.Instances { get; set; }PUBLICGETSET

Box and shape instances gathered into UI batches. A panel may contribute multiple instances.

Returns:int

public int Sandbox.UI.RootPanel.RenderStatistics.Layers { get; set; }PUBLICGETSET

CSS panel layers composited into this root. Excludes layers inside individual Painter recordings.

Returns:int

public System.TimeSpan Sandbox.UI.RootPanel.RenderStatistics.LayoutTime { get; set; }PUBLICGETSET

CPU time spent evaluating styles, calculating layout and applying the resulting layout.

Returns:TimeSpan

public int Sandbox.UI.RootPanel.RenderStatistics.PanelsCulled { get; set; }PUBLICGETSET

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.

Returns:int

public int Sandbox.UI.RootPanel.RenderStatistics.PanelsRendered { get; set; }PUBLICGETSET

Visible panels visited while preparing the rendered command list, including containers without drawing commands.

Returns:int

public long Sandbox.UI.RootPanel.RenderStatistics.RenderCount { get; set; }PUBLICGETSET

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.

Returns:long

public System.TimeSpan Sandbox.UI.RootPanel.RenderStatistics.SubmissionTime { get; set; }PUBLICGETSET

CPU time spent executing this root's render command list, including nested lists and custom draws.

Returns:TimeSpan

On this page