Struct FrameTime
Carries frame timing information from the host into engine applications.
public readonly record struct FrameTime : IEquatable<FrameTime>
- Implements
- Inherited Members
Constructors
FrameTime(TimeSpan, TimeSpan, bool)
Carries frame timing information from the host into engine applications.
public FrameTime(TimeSpan TotalTime, TimeSpan ElapsedTime, bool IsFixedStep)
Parameters
TotalTimeTimeSpanThe total elapsed host time since application start.
ElapsedTimeTimeSpanThe delta time represented by the current frame.
IsFixedStepboolWhether the host is currently simulating in fixed-step mode.
Properties
ElapsedTime
The delta time represented by the current frame.
public TimeSpan ElapsedTime { get; init; }
Property Value
IsFixedStep
Whether the host is currently simulating in fixed-step mode.
public bool IsFixedStep { get; init; }
Property Value
TotalTime
The total elapsed host time since application start.
public TimeSpan TotalTime { get; init; }