Skip to content

KernelAPI reference

Struct AssetStatistics

Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time

Totals over a scope and its children (Statistics).

C#
public readonly struct AssetStatistics : IEquatable<AssetStatistics>

Implements

IEquatable<AssetStatistics>

Constructors

AssetStatistics(int, long, double, int)

Totals over a scope and its children (Statistics).

C#
public AssetStatistics(int Count, long TextureBytes, double LoadMilliseconds, int LoadsDuringPlay)

Parameters

Count int

Assets loaded and not released.

TextureBytes long

Device memory of their textures (images, atlases, font pages).

LoadMilliseconds double

Time spent loading them.

LoadsDuringPlay int

How many were loaded after the first update.

Properties

AudioBytes

Memory of the audio they hold: decoded sound samples and the bytes of music files (kinds “sound” and “music”).

C#
public long AudioBytes { get; init; }

Property Value

long

Count

Assets loaded and not released.

C#
public int Count { get; init; }

Property Value

int

LoadMilliseconds

Time spent loading them.

C#
public double LoadMilliseconds { get; init; }

Property Value

double

LoadsDuringPlay

How many were loaded after the first update.

C#
public int LoadsDuringPlay { get; init; }

Property Value

int

TextureBytes

Device memory of their textures (images, atlases, font pages).

C#
public long TextureBytes { get; init; }

Property Value

long

Methods

Deconstruct(out int, out long, out double, out int)

C#
public void Deconstruct(out int Count, out long TextureBytes, out double LoadMilliseconds, out int LoadsDuringPlay)

Parameters

Count int

TextureBytes long

LoadMilliseconds double

LoadsDuringPlay int

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(AssetStatistics)

C#
public bool Equals(AssetStatistics other)

Parameters

other AssetStatistics

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(AssetStatistics, AssetStatistics)

C#
public static bool operator ==(AssetStatistics left, AssetStatistics right)

Parameters

left AssetStatistics

right AssetStatistics

Returns

bool

operator !=(AssetStatistics, AssetStatistics)

C#
public static bool operator !=(AssetStatistics left, AssetStatistics right)

Parameters

left AssetStatistics

right AssetStatistics

Returns

bool