Skip to content

[Impeller] Impeller uses more memory than skia when sliding the page in android applications. #157497

@FridayAutum

Description

@FridayAutum

Steps to reproduce

1.Open the application.
2.Slide the page.
3.Capture profile memory snapshots by using Flutter devtool.
I found the difference in my android application,then I retested this in flutter-wonderous-app, the phenomenon is consistent.
The average memory data of impeller is always higher than skia.
This problem is more obvious in my app, which is about 20MB higher in comparison.
Here is the "Dart Heap" data captured in the flutter-wonderous-app.
Device1
Impeller
image

Skia
image

Device2
Impeller
image

Skia
image

Code sample

https://github.com/gskinnerTeam/flutter-wonderous-app

What target platforms are you seeing this bug on?

Android

OS/Browser name and version | Device information

Device1:Redmi K70 Pro OS:Xiaomi HyperOS(Android)
Device2:Oneplus 11 OS:ColorOS(Android)

Does the problem occur on emulator/simulator as well as on physical devices?

Unknown

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output

[✓] Flutter (Channel master, 3.27.0-1.0.pre.205, on Ubuntu 24.04.1 LTS 6.8.0-47-generic, locale zh_CN.UTF-8)
• Flutter version 3.27.0-1.0.pre.205 on channel master at /home/mi/workspace/devkit/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision bade559 (8 小时前), 2024-10-23 16:35:10 -0700
• Engine revision 73c54fadf5
• Dart version 3.7.0 (build 3.7.0-58.0.dev)
• DevTools version 2.40.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /home/mi/Android/Sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /home/mi/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
• All Android licenses accepted.

[✓] Chrome - develop for the web
• Chrome at google-chrome

[✗] Linux toolchain - develop for Linux desktop
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
• cmake version 3.28.3
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
• pkg-config version 1.8.1
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)

[✓] Android Studio (version 2024.2)
• Android Studio at /home/mi/.local/share/JetBrains/Toolbox/apps/android-studio
• Flutter plugin version 81.1.3
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2)
• IntelliJ at /home/mi/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.94.2)
• VS Code at /usr/share/code
• Flutter extension version 3.98.0

[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 24.04.1 LTS 6.8.0-47-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 129.0.6668.100

[✓] Network resources
• All expected network resources are available.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work liste: device-specificOnly manifests on certain devicese: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions