updateAfterEvent()!?

Hi all=),

My question may be too simple for you guys.
But i really like to know more on updateAfterEvent();
I think i had seen it on some line drawing scripts.

Why do we use it?
Is this function decrease rendering time?
Is it used only in line drawing?