Page 1 of 1

Optimising P4 for Lottie animations

Posted: Fri Mar 13, 2026 11:06 am
by sensors
Hello,

We are trying to use the P4 (P4 Function EV Board) along with it's 1024x768 display to play some lottie animations. The animations are SVG only and 800x480px, but the frame rate is struggling to get above 6 FPS.

We are using the ESP LV Lottie library.
The Lotties are stored in JSON, which is loaded into PSRAM.
Display double buffering is enabled (see display config below).
ESP PPA accelerator is enabled.

What else can we do to achieve better FPS with lottie animations (ideally 25+)?

Code: Select all

    const lvgl_port_display_cfg_t disp_cfg = {
        .io_handle = lcd_panels.io,
        .panel_handle = lcd_panels.panel,
        .control_handle = lcd_panels.control,
        .buffer_size = 1024*600,
        .double_buffer = true,
        .hres = 1024,
        .vres = 600,
        .monochrome = false,
        /* Rotation values must be same as used in esp_lcd for initial settings of the screen */
        .rotation = {
            .swap_xy = false,
            .mirror_x = false,
            .mirror_y = false,
        }

Re: Optimising P4 for Lottie animations

Posted: Tue Mar 17, 2026 11:18 am
by Lvhaiyu
Currently, it is difficult to increase the frame rate of Lottie-format content to above 25 FPS. This involves a large amount of vector computation, which typically requires a vector-accelerated GPU for processing. Relying solely on the CPU makes it hard to achieve a high frame rate. Additionally, the selection of embedded libraries supporting Lottie is currently quite limited; for embedded platforms, thorvg's Lottie parsing is still too resource-intensive. For specifics, please refer to: https://github.com/espressif/esp-iot-so ... tie_player