Skip to content

Benchmark and improve performance overlay performance #21087

@liyuqian

Description

@liyuqian

Considering that performance overlay is one of our main performance tools, we should:

  1. Benchmark performance overlay in our device lab. Currently all our performance tests don't have performance overlay enabled.
  2. Improve its performance to be less than 1ms per frame. Currently, it's about 4-6ms per frame on Moto G4. That time doesn't even include the actual GPU rendering time. It's just Skia doing CPU work before sending it to GPU... 4-6ms looks quite unacceptable as the whole frame's budget is only 16ms. We should be able to achieve a big speedup by caching the performance overlay to an offscreen buffer. For each new frame, we just add a new vertical blue segment.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: contributor-productivityTeam-specific productivity, code health, technical debt.c: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions