RPi Zero 2W lvglsim 100% core usage

Hello,

I compiled the following and have it running on my Raspberry Pi Zero 2W:

I am using the framebuffer and tried to set and use a lot of resolutions including different color depths, but it never gets any better as the framerate is absolutely bad (I guess between 1-5 fps depending on the shown demo) and the core that is running lvglsim is constantly at 100% usage.

So, I would like to to run much smoother and at an acceptable cpu/core usage.
I don’t know what other settings I am able to use while keeping color…

I did find something similar it seems although this is the Zero (1) but there was no answer:

Hi,

That post of mine was specifically related to using FFMPEG. Using LVGL on its own uses around 4% CPU if that.

While this is a little out of date it’s what I used to set up my environment:

It doesnt use the simulator and outputs directly to framebuffer.

Then there is also this tutorial, I used it to get rid of the blinking cursor.

Hope that helps.

Thank you @elgerg, will try it and come back with the outcome.
But I still wonder why the demo(lvglsim) is running so bad :slight_smile: .
Also because I have the experience that if I ignore it now and build my own gui the same issue will probably bite me on a later stage.

Update: Everything is working now and also tried to lower the refresh timer to 3ms which indeed gives an fps of 300+ in most demo’s.
I also found that scrolling is the big issue which takes 100% cpu usage, still need to play around with the buffers as I have high hopes this will be this fix.
If anyone has other ideas or a solutions for smooth scrolling that has nothing to do with the buffers please let me know :slight_smile: .