Skip to content

slv flush callback is wrong #168

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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