Skip to content

GameTime(TimeSpan, TimeSpan, long, bool) Constructor

Definition

Namespace: Brine2D.Core

Represents timing information for the game loop.

public GameTime(System.TimeSpan TotalTime, System.TimeSpan ElapsedTime, long FrameCount=0L, bool IsTimeClamped=false);

Parameters

TotalTime System.TimeSpan

The total elapsed time since the game started.

ElapsedTime System.TimeSpan

The elapsed time since the last frame.

FrameCount System.Int64

The total number of frames rendered since the game started.

IsTimeClamped System.Boolean

Whether ElapsedTime was clamped this frame. True when the raw delta exceeded MaxDeltaTime (e.g., after a debugger pause). Systems that synchronize with wall-clock time (audio, animation) can use this to skip resynchronization rather than jumping forward.