Skip to content

Track the overall frame time (latency) between the start of VSYNC (in the UI thread) and the end of Rasterizer::Draw (in the GPU thread) #32447

@liyuqian

Description

@liyuqian

Currently our flutter driver performance tests only have UI thread VSYNC times (frame_build_time_millis in timeline_summary.json), and GPU thread Rasterizer::Draw times (frame_rasterizer_time_millis in timeline_summary.json).

Tracking them separately and ensuring them to be no more than 16ms (for 60fps) only guarantees smoothness, but not latency.

Moreover, something could happen between VSYNC and Rasterizer::Draw.

So as a first step, we could simply track the sum of VSYNC and Rasterizer::Draw times for a frame. In the end, we should directly compute the latency by comparing two timestamps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: performanceRelates to speed or footprint issues (see "perf:" labels)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions