Table of Contents

Class FrameInfo

Namespace
Gloam.Core.Contexts
Assembly
Gloam.Core.dll

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 long

The sequential frame number since the start of the game

DeltaTime TimeSpan

Time elapsed since the last frame was rendered

TotalTime TimeSpan

Total time elapsed since the game started

FramesPerSecond float

Current frames per second performance metric

Properties

DeltaTime

Time elapsed since the last frame was rendered

public TimeSpan DeltaTime { get; init; }

Property Value

TimeSpan

FrameNumber

The sequential frame number since the start of the game

public long FrameNumber { get; init; }

Property Value

long

FramesPerSecond

Current frames per second performance metric

public float FramesPerSecond { get; init; }

Property Value

float

TotalTime

Total time elapsed since the game started

public TimeSpan TotalTime { get; init; }

Property Value

TimeSpan