-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Screen tearing when using a Makerfabs Matouch 4.0" 480x480 parallel LCD screen #572
Comments
hi, maybe try lower freq?
16 bit parallel can give really good performances even at 2MHz in order to find the sweet spot you can start with a low value, then increase by 1MHz until the tearing occurs |
Hi @tobozo!
I tried all the way down to 1 MHz, and worked my way all the way up to 14 MHz. Below 5.6 MHz the picture wasn't displayed properly on the screen, and when I got to 5.6 MHz and above, the tearing effect was noticeable. So sadly, this didn't fix the issue for me. |
There is no easy way to prevent tearing because the timing of data transmission from the ESP32 is not synchronized with the operation of the LCD scan lines. |
Interesting. Is something that could be solved with a hardware modification or similar? I'm planning to design a custom PCB with and ESP32S3 and this exact screen. Could a custom design solve this? FYI I have another Matouch screen at my desk. This 7.0" 480x800 model. I have not used it with the LovyanGFX library, but I managed to get it working using this esp-idf (v5.0) project. It uses the same ESP32S3 module, and with this exact project I didn't have any screen tearing at all. It did occasionally lag, but then the entire screen lagged without any tearing. I would much, much rather use this library and the Arduino framework instead of having to deal with the esp-idf directly. |
After some more research, it seems like the esp-idf project I mentioned earlier (right here) is doing some RTOS magic in order to synchronize to the vsync signal. Is this library able to do the same? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Carefully written Issues are more likely to be given priority.
丁寧に記述された報告は優先して対応される可能性が高くなります。
Hi, and thank you for this excellent project! I have a Makerfabs Matouch 4.0" 480x480 screen that's supported by this library, and I've created a very simple LVGL project using Squareline Studio. I'm having some screen tearing issues, and I would like to know if or how this can be resolved.
I'm using the latest Arduino ESP32 version that uses ESP-IDF v5.
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
When moving objects on the screen, I'm getting some screen tearing. It isn't all that bad in the LVGL example I've created, but it gets far worse with heavier objects such as images
Expected Behavior ( 期待される動作 )
Movements without any tearing. The FPS may drop, but it should only lag, not tear like shown in the video and in the picture
Actual Behavior ( 実際の動作 )
Here is a snapshot from the video showing the tearing
And here is the video:
IMG_6181.mp4
Steps to reproduce ( 再現のための前提条件 )
Code to reproduce this issue ( 再現させるためのコード )
Here is the complete PlatformIO project, including the necessary LVGL files and setup:
LovyanGFX_tearing_example.zip
Platformio main.cpp source code
The text was updated successfully, but these errors were encountered: