GameTime Struct
Definition
Namespace: Brine2D.Core
Represents timing information for the game loop.
Implements System.IEquatable<GameTime>
| Constructors | |
|---|---|
| GameTime\(TimeSpan, TimeSpan, long, bool\) | Represents timing information for the game loop. |
| Properties | |
|---|---|
| DeltaTime | Gets the elapsed time as seconds \(convenience property\). |
| ElapsedTime | The elapsed time since the last frame. |
| FrameCount | The total number of frames rendered since the game started. |
| IsTimeClamped | 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. |
| TotalSeconds | Gets the total time as seconds \(convenience property\). |
| TotalTime | The total elapsed time since the game started. |