kBuildBudget top-level constant

Duration const kBuildBudget

The maximum amount of time considered safe to spend for a frame's build phase. Anything past that is in the danger of missing the frame at 60FPS.

This is a hard-coded number and does not take into account the real device frame rate. Prefer using percentiles on the total build or raster time than metrics based on this value.


const Duration kBuildBudget = Duration(milliseconds: 16);