flutter-embedded-linux icon indicating copy to clipboard operation
flutter-embedded-linux copied to clipboard

[Wayland] Slow frames

Open HidenoriMatsubayashi opened this issue 3 years ago • 6 comments

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

image

X11

image

HidenoriMatsubayashi avatar Sep 09 '21 03:09 HidenoriMatsubayashi

Reopened because of https://github.com/sony/flutter-embedded-linux/pull/235

HidenoriMatsubayashi avatar Nov 09 '21 02:11 HidenoriMatsubayashi

@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,

Nagendra-Bankupalli avatar Dec 09 '21 13:12 Nagendra-Bankupalli

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 avatar Dec 10 '21 04:12 HidenoriMatsubayashi

@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 ?

Nagendra-Bankupalli avatar Dec 10 '21 04:12 Nagendra-Bankupalli

Yes, but can you check whether GPU is enabled in your target platform using some tools like glmark2?

HidenoriMatsubayashi avatar Dec 10 '21 04:12 HidenoriMatsubayashi

glmark2-es-wayland works fine on my HW!

Nagendra-Bankupalli avatar Dec 10 '21 05:12 Nagendra-Bankupalli

@HidenoriMatsubayashi On my platform glmark2-es-wayland works well, but flutter gallery app is slow, what could be the issue?

B-Nagendra avatar Oct 12 '22 09:10 B-Nagendra

What device or board are you using?

HidenoriMatsubayashi avatar Oct 12 '22 12:10 HidenoriMatsubayashi

its ARM64 based system

B-Nagendra avatar Oct 12 '22 12:10 B-Nagendra

Specifically?

HidenoriMatsubayashi avatar Oct 12 '22 12:10 HidenoriMatsubayashi

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

B-Nagendra avatar Oct 12 '22 12:10 B-Nagendra

Thanks for sharing. Are you using release mode? Can you please share the score of glmark2-es2?

HidenoriMatsubayashi avatar Oct 12 '22 12:10 HidenoriMatsubayashi

release version is better,still not good , glmark score is 114

B-Nagendra avatar Oct 12 '22 12:10 B-Nagendra

glmark score is 114

It's too low... Is GPU HW accelerator enabled?

HidenoriMatsubayashi avatar Oct 12 '22 13:10 HidenoriMatsubayashi

yes, will check why the score is low, thank you

B-Nagendra avatar Oct 12 '22 15:10 B-Nagendra