Qustion about refresh timer

I’m new to lvgl and currently going through some source code. I have a question regarding the refresh timer, and I was hoping someone could help me understand it.

From what I’ve observed, when certain style property functions are called in lvgl, it invalidates the object area and resumes the refresh timer. This, in turn, triggers refresh routines.

My question is, when the refresh timer is resumed, why doesn’t execute immediately in next lv_timer_handler instead of waiting for the period to expire? In my opinion, this would enhance user interaction by making it faster.

If there are invalidation in every milliseconds, it doesn’t make sense to redraw so often. However you are right, if the last refresh was 10 seconds ago we could start the refresh immediately without waiting for the timer period.

Is there a delay?