How to speed up display refresh rate

WithoutLVGL.zip (1.6 MB)

Description

Display is refreshed with delay after I use LVGL. Without using LVGL, this problem will not appear.

What MCU/Processor/Board and compiler are you using?

STM32L476ZGT6 / STM32L476G-EVAL / STM32CubeIDE

What LVGL version are you using?
LVGL v7.6.1

What do you want to achieve?

Display refresh rate need to be increased using LVGL. If GPU has to be used, please give some sample codes.

What have you tried so far?

Without using LVGL, the screen refresh rate is ok. The following is its architecture. The video(WithoutLVGL) shows a whole screen of red, of green, of blue is continuously being written to the display.


With using LVGL, the screen refresh rate has lags. The following is its architecture. The video(WithLVGL) shows the result.

Code to reproduce

Add the relevant code snippets here.

The code block(s) should be between ```c and ``` tags:

/*You code here*/

Screenshot and/or video

WithLVGL.zip (3.4 MB)

.

What frame rate do you expect to have and what frame rate you actually get?

What portion of the screen in percents is updated on each frame?

What kind of LVGL widgets are updated on the screen? (can you provide a screenshot?)