Skip to content

CI only: Fix a hang when stopping code during big screen redraws - #67

Draft
mikeysklar wants to merge 1 commit into
lvgl_displayiofrom
lvgl-compose-batch
Draft

mikeysklar wants to merge 1 commit into
lvgl_displayiofrom
lvgl-compose-batch

Conversation

@mikeysklar

Copy link
Copy Markdown
Owner

CI run for tannewt#23. Not for merge.

The compose pass queued one LVGL draw task per changed cell and drew
them all at the end. LVGL walks its whole task list to add or dispatch
each task, so a full redraw took time with the square of the cell
count. A 1600 cell grid took 4.8 s, and stopping code.py while a big
grid was redrawing held the LVGL lock long enough to hang USB.

Drawing every 64 queued cells makes it linear and caps the queue at 64
tasks instead of one per cell. A tail pointer in lv_draw_add_task()
would fix the root cause upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant