Table of Contents

Struct FrameTime

Namespace
TileWorld.Engine.Hosting
Assembly
TileWorld.Engine.dll

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

TotalTime TimeSpan

The total elapsed host time since application start.

ElapsedTime TimeSpan

The delta time represented by the current frame.

IsFixedStep bool

Whether 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

TimeSpan

IsFixedStep

Whether the host is currently simulating in fixed-step mode.

public bool IsFixedStep { get; init; }

Property Value

bool

TotalTime

The total elapsed host time since application start.

public TimeSpan TotalTime { get; init; }

Property Value

TimeSpan