Table of Contents

Interface IRenderMetrics

Namespace
BSGameLib.Game.Rendering
Assembly
BSGameLib.Game.dll

Sprite batch counts for each frame. The renderers add to the current frame as they flush; the render context starts a frame before it executes the frame graph and completes it after.

public interface IRenderMetrics : IMetrics

Properties

DrawCallHistory

Draw calls for each of the last 256 completed frames, oldest overwritten first.

float[] DrawCallHistory { get; }

Property Value

float[]

LastFrameDrawCalls

Sprite batch draw calls in the last completed frame.

int LastFrameDrawCalls { get; }

Property Value

int

LastFrameVertices

Sprite vertices (four per sprite) submitted in the last completed frame. Shapes are not counted.

int LastFrameVertices { get; }

Property Value

int

VertexHistory

Vertices for each of the last 256 completed frames, oldest overwritten first.

float[] VertexHistory { get; }

Property Value

float[]

Methods

BeginFrame()

Starts a new frame: its counts start at zero.

void BeginFrame()

EndFrame()

Completes the current frame: its counts become the LastFrame values and enter the history.

void EndFrame()

RecordDrawCall(int)

Counts one sprite batch draw call of vertices vertices in the current frame.

void RecordDrawCall(int vertices)

Parameters

vertices int