Skip to content

Loading asset images causes animation jank #107487

@a-gms

Description

@a-gms

I create an app which loads image assets while scrolling, which causes dropped frames. Profiling shows that the culprit is ImmutableBuffer.fromAsset(). According to flutter/engine#32999 image asset loading is done on UI thread. It is no surprise that it delays UI thread and results in dropped frames. Is there a way to fix it? I don't want to have to fill 1GB of memory with preloaded asset images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: assetsPackaging, accessing, or using assetsa: imagesLoading, displaying, rendering imagesc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.found in release: 3.1Found to occur in 3.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions