Class FrameInfo
Represents timing and performance information for a single frame in the game loop
public record FrameInfo : IEquatable<FrameInfo>
- Inheritance
-
FrameInfo
- Implements
- Inherited Members
Constructors
FrameInfo(long, TimeSpan, TimeSpan, float)
Represents timing and performance information for a single frame in the game loop
public FrameInfo(long FrameNumber, TimeSpan DeltaTime, TimeSpan TotalTime, float FramesPerSecond)
Parameters
FrameNumber
longThe sequential frame number since the start of the game
DeltaTime
TimeSpanTime elapsed since the last frame was rendered
TotalTime
TimeSpanTotal time elapsed since the game started
FramesPerSecond
floatCurrent frames per second performance metric
Properties
DeltaTime
Time elapsed since the last frame was rendered
public TimeSpan DeltaTime { get; init; }
Property Value
FrameNumber
The sequential frame number since the start of the game
public long FrameNumber { get; init; }
Property Value
FramesPerSecond
Current frames per second performance metric
public float FramesPerSecond { get; init; }
Property Value
TotalTime
Total time elapsed since the game started
public TimeSpan TotalTime { get; init; }