QML runs animations on Raspberry Pi very slow
-
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
).@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.
-
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.