Optimising P4 for Lottie animations
Posted: 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+)?
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,
}