NewsCrawler.org

Flutter rolls back its Android CPU core change and proposes a new approach

A change merged in PR #195071 let Flutter's Raster Thread[1] on Android run on the Performance cores, not only the two Prime cores, and it made some Snapdragon devices faster. The official fading_child_animation_perf benchmark then showed a 2x regression in average_frame_rasterizer_time_millis, so the change was rolled back. The article also cites #190815, which reports that on iOS the UI and Raster threads can stay on efficiency cores until the workload grows.

The author explains that the Raster Thread runs short, periodic, latency-sensitive tasks, so the best core choice may differ between platforms. For example, two 4.61 GHz Prime cores can be slower than six 3.63 GHz Performance cores, because a thread woken for 1–2 ms of raster work may finish before the core's frequency ramps up. The author describes the history of core limits and exclusions as a repeating cycle of CPU affinity[2] changes.

The ADPF[3] integration proposal in RFC #45 and PR #195992 would let Flutter tell Android which threads handle UI build and raster, the frame deadline, how long the previous frame took, and whether the app is resuming from a long idle period, with the system choosing the cores. The RFC author tested a prototype on Pixel 8, Pixel 9 and Lenovo Tab with Fixed Performance Mode turned off, but some light workloads are slower on Pixel 8 and Lenovo Tab, and Hybrid Composition[4] has a thread-merging problem. The author considers this direction more reasonable than maintaining hand-tuned core rules.

Read the original juejin.cn

Sources

  • CNJuejin ZH

    Flutter 大小核优化又被回滚,然后又开新提案?

    6 likes496 views0 comments3 saves

Published: First seen: Читать по-русски

Open as a page