API

Function setRenderTaskGpuTimingEnabled

  • Enable or disable per-frame-graph-task GPU timing.

    The profiling implementation is loaded with a dynamic import on first enable. Engines that never call this function do not fetch the profiler chunk or carry task-timing code in the always-fetched frame graph. The returned snapshot is unsupported if the device lacks WebGPU timestamp-query, pending immediately after enable, and available once a later frame's async timestamp readback completes.

    Parameters

    Returns Promise<RenderTaskGpuTimings>