flutter-embedded-linux
flutter-embedded-linux copied to clipboard
[Wayland] Slow frames
Obviously slow frames are more easily occurring with Wayland backend compared to X11 backend. Bottleneck is eglSwapBuffers
and it takes about 18msec every frame.
Wayland
X11
Reopened because of https://github.com/sony/flutter-embedded-linux/pull/235
@HidenoriMatsubayashi , I am testing flutter-elinux on ARM64 (imx8) platform, on wayland (drm-backend) , found the gpu and cpu utilisations are high for flutter-applications, would like to know how to do better gpu profiling for flutter-elinux ? if this thread is not for gpu, please suggest me the right link,
would like to know how to do better gpu profiling for flutter-elinux ?
I think BSP vendors usually provide the GPU profiling tools. I recommend you use it to analyze GPU performance. Whereas, if you want to analyze flutter apps performance or this embedder, you can use DevTools.
@HidenoriMatsubayashi , thank you for the inputs, sure will try devTools as well, but do we need to take any special care to enable GPU support while building flutter ?
Yes, but can you check whether GPU is enabled in your target platform using some tools like glmark2?
glmark2-es-wayland works fine on my HW!
@HidenoriMatsubayashi On my platform glmark2-es-wayland works well, but flutter gallery app is slow, what could be the issue?
What device or board are you using?
its ARM64 based system
Specifically?
its custom hw, its TI based (PowerVR + openGLES 3.1), powrVR supprted in flutter 2.5.0 onwards , (not sure about flutter-elinux) my flutter-elinux version is Flutter 3.3.3 • channel unknown • unknown source Framework • revision 18a827f393 (2 weeks ago) • 2022-09-28 10:03:14 -0700 Engine • revision 5c984c26eb Tools • Dart 2.18.2 • DevTools 2.15.0
Thanks for sharing. Are you using release mode? Can you please share the score of glmark2-es2?
release version is better,still not good , glmark score is 114
glmark score is 114
It's too low... Is GPU HW accelerator enabled?
yes, will check why the score is low, thank you