Repository navigation
Make LVGL screens faster on dot clock displays - #12024
Open
mikeysklar wants to merge 3 commits into
Open
mikeysklar wants to merge 3 commits into
mikeysklar wants to merge 3 commits into
Conversation
The RGB panel driver aligns its frame buffer only to what its DMA needs, which is 1 byte on the ESP32-S3, so whether LVGL could render straight into it depended on where the allocation landed. Allocate the buffer here, 64-byte aligned in PSRAM (LVGL's draw buffer alignment), and hand it to the driver through user_fbs. The driver doesn't free buffers it was given, so free it on deinit and when panel setup fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Direct rendering was behind a compile-time constant set to 0, because drawing into a buffer while it is displayed can tear on some displays. Whether that is safe depends on the framebuffer, not the port, so add an optional get_allow_direct_render getter to the framebuffer protocol, default false. DotClockFramebuffer allows it: legacy displayio already draws straight into that buffer, and with the buffer now 64-byte aligned, LVGL draws into it too and the strip copy goes away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Photo Frame guide on a Qualia ESP32-S3 at 2x. Left is CircuitPython 10.3.2, right is this PR with adafruit/lvgl#4: 19 vs 80 photos in 18 s. qualia-photo-frame-10.3.2-vs-lvgl-720p.mp4 |
tannewt
reviewed
Dec 3, 2026
tannewt
left a comment
Member
There was a problem hiding this comment.
Code looks good! Just needs the lvgl commit update
Picks up adafruit/lvgl#4: an opaque image also covers its area at whole-number scales, so LVGL no longer draws the background under it first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Thanks! Added a commit that updates LVGL to pick up adafruit/lvgl#4. It's the same LVGL code used for the video above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
LVGL draws straight into the dot clock screen's memory instead of copying strips into it.
Why
Full-screen redraws and photo slideshows on the Qualia get 1.6x to 4x faster.
Needs adafruit/lvgl#4, or scaled images flash black. I'll add the lib/lvgl update here once it merges.
get_allow_direct_render, default false. Only DotClockFramebuffer sets itWritten with Claude Code. Results are serial output and video from the board.
🤖 Generated with Claude Code