esp-bsp icon indicating copy to clipboard operation
esp-bsp copied to clipboard

Component esp_lvgl_port, can SIMD instructions be used to speed up LVGL swapping bytes? (BSP-293)

Open modi12jin opened this issue 2 years ago • 4 comments

I am more curious whether SIMD instructions can speed up the LVGL drawing UI process?

modi12jin avatar Apr 05 '23 06:04 modi12jin

They definitely can be used to speed up color fill and similar operations. LVGL project is implementing the parallel drawing framework, which will allow the port layer to define handlers for specific drawing tasks (see this discussion). According to @kisvegabor the release of LVGL with these changes is planned in autumn (https://github.com/lvgl/lvgl/issues/4011#issuecomment-1491501750). Then we will implement some of the drawing tasks using SIMD instructions.

igrr avatar Apr 05 '23 07:04 igrr

I confirm it! :slightly_smiling_face:

kisvegabor avatar Apr 05 '23 08:04 kisvegabor

@modi12jin Can I close this ticket as answered?

VojtechBartoska avatar Mar 13 '24 12:03 VojtechBartoska

Since v9 LVGL has some built-in ASM accelerators. See an example for the usage here.

Somewhere Espressif described that maintaining the ESP-ASM on ESP's side would be more beneficial, but I don't know if there is a final decision about it. Having them in LVGL could be beneficial to avoid compatibility issues though.

kisvegabor avatar Mar 14 '24 10:03 kisvegabor