Optimising P4 for Lottie animations

sensors
Posts: 3
Joined: Mon Feb 08, 2021 1:49 pm

Optimising P4 for Lottie animations

Postby sensors » Fri Mar 13, 2026 11:06 am

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,
        }

Lvhaiyu
Espressif staff
Espressif staff
Posts: 20
Joined: Fri Sep 15, 2023 7:10 am

Re: Optimising P4 for Lottie animations

Postby Lvhaiyu » Tue Mar 17, 2026 11:18 am

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

Who is online

Users browsing this forum: ChatGPT-User and 11 guests