supportsGpuTimestamps property

  1. @override
bool get supportsGpuTimestamps

Whether this device measures how long the GPU spends in each labelled pass — H2. When true, onGpuTimings is called with them.

False on Impeller (flutter_gpu has no timer query), on the software rasteriser (whose passes run on the CPU and are timed where they are encoded) and on WebGL2, which does not yet read EXT_disjoint_timer_query_webgl2. WebGPU answers from whether the adapter granted timestamp-query.

Implementation

@override
bool get supportsGpuTimestamps =>
    gpuDevice.features.has(GpuFeature.timestampQuery);