QML runs animations on Raspberry Pi very slow
-
wrote on 26 Mar 2021, 11:57 last edited by Shine
My QML applications can run in raspberry pie 3 b and raspberry pie 4 b, I find that when I run animation effects will cause the CPU takes up more than 100%, thus cause the program's graphical animation operation very caton, this is obviously not truly effective use of the GPU to draw graphics, so I need to how to operate the QML program in raspberry pie 3 b or raspberries pie on 4 b can make effective use of GPU to draw graphics animation can run smoothly.
This is my Raspberry Pi CPU running, 'IU' is my QML graphics program.
Note: The program is attached to X11 to run.
-
Run your app with EGLFS plugin, not X11, and make sure you are running RPi's OpenGL driver (you can enable it in
raspi-config
). -
Run your app with EGLFS plugin, not X11, and make sure you are running RPi's OpenGL driver (you can enable it in
raspi-config
).wrote on 24 Apr 2021, 22:07 last edited by@sierdzio Hi. When you say OpenGL driver, do you mean vc4-fkms-v3d? Cause I have a similar issue as the OP. I have a simple QML app which is running smoothly on FullHD on any raspberry, but if I run 4K on Raspi 4, it gets very choppy... Again the app is very simple, just text animations.
-
Yes I mean the vc4.
Not sure about 4k, I've never tested it on such a big screen.
-
wrote on 13 May 2021, 20:40 last edited by
@sierdzio Seems to me that the problem is mostly apparent for animations that include some transparency interpolation. If the scene just shifts texts back and forth, that doesn't seem to be impacted much. Does that make any sense?
-
Yes, RPi has a weak GPU and OpenGL driver is not optimized very well. What you describe seems consistent with some corner case where optimization is lacking.
-
Yes, RPi has a weak GPU and OpenGL driver is not optimized very well. What you describe seems consistent with some corner case where optimization is lacking.