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
EncodingTimeMsdoubleThe time that the frame took to encode, in milliseconds.
RenderingTimeMsdoubleThe time that the frame took to render, in milliseconds.
FrameCountlongThe frames rendered so far.
DrawCallCountlongThe draw calls in the frame.
TotalDrawCallCountlongThe 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
EncodingTimeMs
The time that the frame took to encode, in milliseconds.
public double EncodingTimeMs { get; init; }
Property Value
FrameCount
The frames rendered so far.
public long FrameCount { get; init; }
Property Value
RenderingTimeMs
The time that the frame took to render, in milliseconds.
public double RenderingTimeMs { get; init; }
Property Value
TotalDrawCallCount
The draw calls in every frame so far.
public long TotalDrawCallCount { get; init; }