Class RenderStats
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
DeltaTime
Delta time in milliseconds
public long DeltaTime { get; set; }
Property Value
DrawCalls
Total draw calls made during the current frame
public int DrawCalls { get; }
Property Value
FPS
TotalFrames per second
public int FPS { get; set; }
Property Value
LastFrameTime
Last frame time in milliseconds
public long LastFrameTime { get; set; }
Property Value
Methods
IncrementDrawCalls(int)
Increment the draw calls count by the specified amount
public void IncrementDrawCalls(int count = 1)
Parameters
countint
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()