targetFrameTime property
The target time for every single frame.
If a frame takes longer than this target time, the corresponding bar in the bar chart turns red and the average FPS as well as it will be below the target value.
To calculate the target frame timing for your desired FPS value, use
(1000 / targetFPS).floor()
to get the timing in ms.
This also draws a line at y = targetFrameTime
indicating the goal time
span for frames.
Defaults to 16ms, which corresponds to 60 FPS.
Implementation
final Duration targetFrameTime;