renderStats property
Latest frame statistics.
Implementation
@override
RenderStats get renderStats {
final cpuMs = _cpuMs.value;
return RenderStats(
fps: cpuMs > 0 ? 1000 / cpuMs : 0,
vertexCount: _source.splatCount,
lastFrameTime: _lastFrameTime ?? DateTime.timestamp(),
cpuFrameTimeMs: cpuMs > 0 ? cpuMs : null,
profilerType: 'CPU',
);
}