Skip to content

Raster cache should allow a configuration to always cache on first usage #87826

@jonahwilliams

Description

@jonahwilliams

Right now PictureLayers are only cached if they meet the cache criteria for 2+ frames. In the case of particularly complex pictures, like SVGs, this can lead to 2+ frames of rendering jank.

We should allow an opt in, either by re-using the underspecified is_complex flag, or by introducing another, to always cache on the first frame.

c.f. https://github.com/flutter/engine/blob/master/flow/raster_cache.cc#L272

Metadata

Metadata

Assignees

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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions