Scripting API

Scripting API

ProfiledRender

Struct in Abyss.Core, from Abyss.Core.

The render thread's drawing of a frame, as the engine timed it: the frame it draws, when it started and how long it took, and how long each of its parts took — up to the window's next image, the wait for it, the frame's draws worked out, drawn and presented, and what is put away after.

public readonly struct ProfiledRender

Remarks

Laid out as abyss_core::profile::ProfiledRender is.

Fields

Frame

public readonly ulong Frame

The frame it draws.

StartedNs

public readonly ulong StartedNs

When it started.

TotalNs

public readonly ulong TotalNs

How long it took.

PartsNs

public readonly RenderParts PartsNs

How long each part took, in World.ProfilePartName's order.

Constants

PartCount

public const int PartCount = 5

How many parts its time is told in.

WaitPart

public const int WaitPart = 1

The part that is the window's wait for the display's next image.