1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

perf(draw): skip empty draw tasks (#6720)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX 2024-08-23 14:28:47 +08:00 committed by GitHub
parent 8d8b279638
commit ed4cb19926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,8 @@ void lv_draw_dispatch(void)
while(disp) {
lv_layer_t * layer = disp->layer_head;
while(layer) {
if(lv_draw_dispatch_layer(disp, layer))
/* If there are no tasks in the layer, skip it */
if(layer->draw_task_head && lv_draw_dispatch_layer(disp, layer))
render_running = true;
layer = layer->next;
}