KernelAPI reference
Struct AssetStatistics
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
Totals over a scope and its children (Statistics).
public readonly struct AssetStatistics : IEquatable<AssetStatistics>Implements
Constructors
AssetStatistics(int, long, double, int)
Totals over a scope and its children (Statistics).
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”).
public long AudioBytes { get; init; }Property Value
Count
Assets loaded and not released.
public int Count { get; init; }Property Value
LoadMilliseconds
Time spent loading them.
public double LoadMilliseconds { get; init; }Property Value
LoadsDuringPlay
How many were loaded after the first update.
public int LoadsDuringPlay { get; init; }Property Value
TextureBytes
Device memory of their textures (images, atlases, font pages).
public long TextureBytes { get; init; }Property Value
Methods
Deconstruct(out int, out long, out double, out int)
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)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(AssetStatistics)
public bool Equals(AssetStatistics other)Parameters
other AssetStatistics
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(AssetStatistics, AssetStatistics)
public static bool operator ==(AssetStatistics left, AssetStatistics right)Parameters
left AssetStatistics
right AssetStatistics
Returns
operator !=(AssetStatistics, AssetStatistics)
public static bool operator !=(AssetStatistics left, AssetStatistics right)Parameters
left AssetStatistics
right AssetStatistics