Vixen
dd8b0a81
csharp
public readonly record struct UiFrame

When a frame is happening, and how long the last one took.

Read the guide page for this →

Remarks

⚠ Both, because a caller needs each for a different thing and deriving one from the other is where the copies went wrong. An animation phase accumulates Delta; a toast expires against Now, which is the same clock Tick is given, so a caller that stamped one from Stopwatch.GetTimestamp of its own would have two timelines that agree until the process is paused under a debugger.

Fields and properties (2)

  • public TimeSpan Now

    Time since the application started.

  • public TimeSpan Delta

    How long the previous frame took.

Methods (1)

  • public UiFrame(TimeSpan Now, TimeSpan Delta)

    When a frame is happening, and how long the last one took.

Used by (2)

  • UiApplicationVixen.Ui.Desktop
  • UiApplicationOptionsVixen.Ui.Desktop