Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange Performance Issue, Possibly Related To Skia? #340

Open
ghost opened this issue Jun 7, 2023 · 3 comments
Open

Strange Performance Issue, Possibly Related To Skia? #340

ghost opened this issue Jun 7, 2023 · 3 comments
Labels
engine Topics of Flutter Engine and its artifacts performance Topics for performance issues

Comments

@ghost
Copy link

ghost commented Jun 7, 2023

Hi,
I am running the flutter engine in release (aot) mode with the wayland embedder backend on a proprietary armv7hf yocto platform and am experiencing a strange performance issue with the flutter create sample app where even though it's running in aot mode it's very unresponsive on startup but becomes perfectly responsive after the button has been pressed a large number of times (40-100). The only thing I've found in the flutter docs that might fit this behavior is skia compilation shader jank. I also ran the app on the debug mode flutter engine on the device to get tracing through the dart vm observatory and it seems to fit the description of skia shader compilation jank. Below I have attached a screen capture of the timeline.

dart-trace

For context, since flutter-elinux currently doesn't support armv7 I am performing aot cross-compilation manually via the manual cross-build instructions provided in the wiki with some adjustments to account for the platform. I have not yet managed to get flutter devtools running on the device. I would like to know if you have any ideas what might be causing this issue and how I could start going about making a fix.

@HidenoriMatsubayashi HidenoriMatsubayashi added the engine Topics of Flutter Engine and its artifacts label Jun 7, 2023
@HidenoriMatsubayashi
Copy link
Contributor

Thank you for sending this report. I think this is well-known issue called Shader compilation jank. The only way at this time is to use SkSL warmup.

@ghost
Copy link
Author

ghost commented Jun 8, 2023

I see, thank you. In that case probably going to hold off for now and revisit when impeller opengles becomes available for embedded linux.

@HidenoriMatsubayashi HidenoriMatsubayashi added the performance Topics for performance issues label Aug 6, 2023
@0xkelvin
Copy link

I see, thank you. In that case probably going to hold off for now and revisit when impeller opengles becomes available for embedded linux.

sorry, might not related topic, but might i ask how do you measure/profiling performance flutter on embedded devices ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Topics of Flutter Engine and its artifacts performance Topics for performance issues
Projects
None yet
Development

No branches or pull requests

2 participants