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:
parent
8d8b279638
commit
ed4cb19926
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user