sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
424 stars 43 forks source link

i.MX8 CPU to 100% #190

Closed wimdewitte closed 1 year ago

wimdewitte commented 1 year ago

I'm evaluating elinux on an i.MX8 board, using wayland; with latest yocto of NXP. App (= default test_app or from flutter/samples) is working, startup time is ok; if the app is running without being used, the CPU usage is negligible. But from the moment a button is clicked; CPU usage for the flutter app increases to 100% for some seconds. This make the app worthless and doesn't reflect the idea that flutter is lightweight. I don't think the problem is related to graphical subsystem or whatever, but more like a process while loop running too fast. Is anyone else experiencing the same problem on i.MX8?

HidenoriMatsubayashi commented 1 year ago

Are you using release build? Does CPU usage 100% mean per All CPU cores? or Just 1 core? Also please ensure GPU H/W driver is enabled on your device.

wimdewitte commented 1 year ago

yes, release build, gpu enabled, load is on all cores

HidenoriMatsubayashi commented 1 year ago

Specifically, what i.mx8 series are you using? I haven't heard flutter utilization is so high. Can you share real logs like top command logs?

HidenoriMatsubayashi commented 1 year ago

This is an example using flutter on i.MX8M board. https://www.sequality.at/blog/2023/techtalk-flutter-on-embedded-linux/

スクリーンショット 2023-08-11 14 08 50 スクリーンショット 2023-08-11 14 12 21
HidenoriMatsubayashi commented 1 year ago

Closing. Thank you.