TextStudio2DRenderStatistics
public readonly struct TextStudio2DRenderStatisticsRead-only snapshot of how one text rendered its 2D Appearance in the latest presentation update. Categories are disjoint, so their sum is the text’s scheduled work: direct draws present the visible output, offscreen draws and passes build an isolated composition, and shadow draws render only into shadow maps. Counts are scheduled submissions before engine batching; the Frame Debugger or a GPU profiler measures merged hardware draws.
Properties
Section titled “Properties”
public TextStudio2DRoute Route { get; }How the text’s Appearance executes.
Returns
TextStudio.TextStudio2DRoute
Reason
Section titled “Reason”public TextStudio2DRouteReason Reason { get; }The first condition that selected TextStudio.TextStudio2DRenderStatistics.Route.
Returns
TextStudio.TextStudio2DRouteReason
DirectDraws
Section titled “DirectDraws”public int DirectDraws { get; }Draws presenting the visible output: native field submeshes, ordered primitive runs or the composed quad.
Returns
System.Int32
WorldBatched
Section titled “WorldBatched”public bool WorldBatched { get; }True while a TextStudio.TextStudioWorldBatchGroup draws this text; its draws count on the group.
Returns
System.Boolean
OffscreenLayerDraws
Section titled “OffscreenLayerDraws”public int OffscreenLayerDraws { get; }Glyph and surface draws into offscreen composition targets.
Returns
System.Int32
CompositePasses
Section titled “CompositePasses”public int CompositePasses { get; }Full-target blend passes that combine offscreen surfaces, excluding filter passes.
Returns
System.Int32
FilterPasses
Section titled “FilterPasses”public int FilterPasses { get; }Blur, warp, history, lens and other image-filter passes.
Returns
System.Int32
PublishPasses
Section titled “PublishPasses”public int PublishPasses { get; }Copies of a finished composition into its shared output page slice.
Returns
System.Int32
ShadowDraws
Section titled “ShadowDraws”public int ShadowDraws { get; }Draws into shadow maps for alpha-clipped world shadows.
Returns
System.Int32
CompositionWidth
Section titled “CompositionWidth”public int CompositionWidth { get; }Offscreen composition size in pixels, or zero without a composition.
Returns
System.Int32
CompositionHeight
Section titled “CompositionHeight”public int CompositionHeight { get; }Offscreen composition size in pixels, or zero without a composition.
Returns
System.Int32
OffscreenWork
Section titled “OffscreenWork”public int OffscreenWork { get; }Scheduled offscreen work: layer draws plus composite, filter and publish passes.
Returns
System.Int32