Skip to content

[Impeller] Vulkan backend binary size increase investigation #128484

@zanderso

Description

@zanderso

With the vulkan backend under a runtime flag flutter/engine#42585, the uncompressed libflutter.so increases about 400KB, and the compressed size increases about 140KB.

Before treemap: https://storage.googleapis.com/flutter_infra_release/flutter/2cd02eb079e748d26e0c4452504724b86b25d858/android-arm64-release/sizes/index.html

After treemap:
https://storage.googleapis.com/flutter_infra_release/flutter/7dd4754230ce05a33e59356a616964d697b51009/android-arm64-release/sizes/index.html

It looks like about 175KB uncompressed comes from the vulkan shaders, and ~75KB uncompressed comes from the vulkan backend code in Impeller. Not sure about the rest of the difference but between those two treemaps, there's also a ~40KB increase in libcxx, thought that might not be from flutter/engine#42585.

This all may be WAI, but gathering the links here anyway for discussion.

cc @jason-simmons @gaaclarke

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: sizeReducing IPA/APK/JS sizese: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.perf: app sizePerformance issues related to app size (binary/code size) or disk space

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions