Skip to content

slv flush callback is wrong #168

@AndreCostaaa

Description

@AndreCostaaa

Even when using DIRECT render mode with a buffer size equal to framebuffer for LVGL, the flush callback is still called multiple times.
The current flush callback will flush the display too many times causing a huge slowdown

so3/usr/lib/slv/slv_fb.c

Lines 135 to 140 in cc8fba7

static void my_fb_cb(lv_display_t *disp, const lv_area_t *area, uint8_t *px_map)
{
slv_fb_priv_t *priv = (slv_fb_priv_t *)lv_display_get_user_data(disp);
memcpy(priv->fbp, px_map, priv->fb_size);
lv_display_flush_ready(disp);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions