Skip to content

Tearing Effect - Arduino Giga Display #796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jens1985 opened this issue Dec 11, 2023 · 1 comment
Open

Tearing Effect - Arduino Giga Display #796

Jens1985 opened this issue Dec 11, 2023 · 1 comment
Labels

Comments

@Jens1985
Copy link

Hey, I've had the Arduino Giga Display for a few days now.

I'm trying to get it to work with the LVGL example.
I have created a screen with two buttons. The screen is scrollable.
When I scroll the screen, there is a tearing effect.

Alt Text

I would like to eliminate the tearing effect.

I have already enlarged the buffer and added a double buffer.
lv_conf.h
#define LV_MEM_SIZE (256U * 1024U)

Arduino_H7_Video.cpp

static lv_color_t * buf2;  
buf1 = (lv_color_t*)malloc((width() * height() / 4) * sizeof(lv_color_t));
buf2 = (lv_color_t*)malloc((width() * height() / 4) * sizeof(lv_color_t)); 
lv_disp_draw_buf_init(&draw_buf, buf1, buf2, width() * height() / 4);

I have also activated the DMA2D (aka Chrom Art) GPU.
lv_conf.h

#define LV_USE_GPU_STM32_DMA2D 1
#if LV_USE_GPU_STM32_DMA2D
    /*Must be defined to include path of CMSIS header of target processor
    e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
    #define LV_GPU_DMA2D_CMSIS_INCLUDE <stm32h747xx.h>
#endif

What else can i do to eliminate the tearing effect?

@iabdalkader
Copy link
Contributor

Hi! Can you please post a full sketch to reproduce this issue, if it's still an issue ? I'm doing some fixes to the display and can take a look while I'm at it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants