RenderStats class

Immutable per‑frame rendering performance statistics.

Performance is measured using exponentially weighted moving averages (EWMA) with automatic GPU profiling when supported by the WebGL context.

Annotations

Constructors

RenderStats.new({required double fps, required int vertexCount, required DateTime lastFrameTime, double? cpuFrameTimeMs, double? gpuFrameTimeMs, String? profilerType})
Creates a new instance of RenderStats.
const

Properties

cpuFrameTimeMs double?
Average CPU frame time in milliseconds (smoothed with EWMA).
final
fps double
CPU-based frames per second (smoothed with EWMA).
final
gpuFps double?
GPU-based frames per second, if GPU timing is available.
no setter
gpuFrameTimeMs double?
Average GPU frame time in milliseconds (smoothed with EWMA), if available.
final
hasGpuTiming bool
True if GPU timing measurements are available.
no setter
hashCode int
The hash code for this object.
no setterinherited
lastFrameTime DateTime
Timestamp when the last frame was completed.
final
profilerType String?
Type of performance profiler being used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertexCount int
Number of Gaussian splat vertices rendered in the last frame.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited