Frame

csharp
public static class Frame

Namespace Flux.

The frames of the instance: clock, frame count, and "await Frame.Next()".

Properties

Time

csharp
public static double Time { get; }

Seconds of script time since the instance started (sum of the frame times).

DeltaTime

csharp
public static double DeltaTime { get; }

Length of the current frame, in seconds.

Count

csharp
public static long Count { get; }

Number of frames run so far.

Methods

Next

csharp
public static FrameAwaitable Next()

await Frame.Next(): the rest of the method runs at the start of the next frame.

Nested types