FrameTimeRecorder constructor
FrameTimeRecorder({
- int windowSize = 1000,
Creates a recorder.
windowSize caps how many of the most recent frames are kept; once
full, the oldest sample is dropped as a new one arrives. A benchmark
scene runs for a fixed wall-clock window, not a fixed frame count, so
this exists to bound memory on a very high refresh-rate display rather
than to implement the windowing itself.
Implementation
FrameTimeRecorder({this.windowSize = 1000})
: assert(windowSize > 0, 'windowSize must be positive');