endFrame method
Call this at the end of render().
Implementation
void endFrame({bool skipped = false}) {
_frameCount++;
if (skipped) {
_skippedFrames++;
}
if (_renderStopwatch != null) {
_renderStopwatch!.stop();
_lastRenderDuration = _renderStopwatch!.elapsed;
_renderTimes.add(_lastRenderDuration);
if (_renderTimes.length > _sampleSize) {
_renderTimes.removeAt(0);
}
}
}