Table of Contents

Class RenderStats

Namespace
LibGFX.Core
Assembly
LibGFX.dll

Class to hold render statistics

public class RenderStats
Inheritance
RenderStats
Inherited Members

Properties

CurrentFrameTime

Current frame time in milliseconds

public long CurrentFrameTime { get; set; }

Property Value

long

DeltaTime

Delta time in milliseconds

public long DeltaTime { get; set; }

Property Value

long

DrawCalls

Total draw calls made during the current frame

public int DrawCalls { get; }

Property Value

int

FPS

TotalFrames per second

public int FPS { get; set; }

Property Value

int

LastFrameTime

Last frame time in milliseconds

public long LastFrameTime { get; set; }

Property Value

long

Methods

IncrementDrawCalls(int)

Increment the draw calls count by the specified amount

public void IncrementDrawCalls(int count = 1)

Parameters

count int

NewFrame()

New frame method to be called at the beginning of each frame

public void NewFrame()

Reset()

Reset method to reset the render stats

public void Reset()

Start()

OnStart method to initialize the render stats

public void Start()

ToString()

Override ToString method to display the render stats

public override string ToString()

Returns

string