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

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;
}