Skip to content

esp_lvgl_adapter ESP_LV_ADAPTER_TEAR_AVOID_MODE_TRIPLE_PARTIAL allocate draw buffer should use psram flag in config (AEGHB-1340) #627

@mattmatt206

Description

@mattmatt206

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Currently when using ESP_LV_ADAPTER_TEAR_AVOID_MODE_TRIPLE_PARTIAL the draw buffer that is allocated is made in internal memory. I believe it should follow what the user has set their preference to, see below

bool use_psram; /*!< Use PSRAM for buffers if available */

this is where the draw buffer is created

void *buf = display_manager_alloc_draw_buffer(cfg->draw_buf_pixels * color_size, false);

i believe it should be as follows
void *buf = display_manager_alloc_draw_buffer(cfg->draw_buf_pixels * color_size, profile->use_psram);

Regards,
Matt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions