Skip to content

☂️ - Improved raster cache heuristics for complex pictures #87833

@jonahwilliams

Description

@jonahwilliams

Currently flutter uses a raster cache of Pictures to speed up rendering when the same pictures are rendered frame after frame. Consider, a ScrollView of ListTiles, as you scroll each will be rendered, then raster cached, then evicted once they move off screen.

Currently the raster cache heuristics are tuned such that they work reasonably well with the Material and Cupertino libraries. These same heuristics lead to less than optimal behavior on extremely complex pictures such as SVGs, which can contain 100s or 1000s of drawing commands. These pictures may benefit from different cache heuristics and raster cache behavior, to be described in the issue list below:

Behavior

Documentation

Tooling

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions