Table of Contents

Struct RenderingStats

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Statistics about the frames that a map renders.

public readonly record struct RenderingStats : IEquatable<RenderingStats>
Implements
Inherited Members

Remarks

See mln_rendering_stats in the C API reference.

Constructors

RenderingStats(double, double, long, long, long)

Statistics about the frames that a map renders.

public RenderingStats(double EncodingTimeMs, double RenderingTimeMs, long FrameCount, long DrawCallCount, long TotalDrawCallCount)

Parameters

EncodingTimeMs double

The time that the frame took to encode, in milliseconds.

RenderingTimeMs double

The time that the frame took to render, in milliseconds.

FrameCount long

The frames rendered so far.

DrawCallCount long

The draw calls in the frame.

TotalDrawCallCount long

The draw calls in every frame so far.

Remarks

See mln_rendering_stats in the C API reference.

Properties

DrawCallCount

The draw calls in the frame.

public long DrawCallCount { get; init; }

Property Value

long

EncodingTimeMs

The time that the frame took to encode, in milliseconds.

public double EncodingTimeMs { get; init; }

Property Value

double

FrameCount

The frames rendered so far.

public long FrameCount { get; init; }

Property Value

long

RenderingTimeMs

The time that the frame took to render, in milliseconds.

public double RenderingTimeMs { get; init; }

Property Value

double

TotalDrawCallCount

The draw calls in every frame so far.

public long TotalDrawCallCount { get; init; }

Property Value

long