Call the update function or repaint function, trigger function paintEvent
repaint function parameters can be updated in a region of an
repaint function immediately trigger function paintEvent
update function does not trigger immediate arrangements handled by the message queues, event-triggered multiple update will be merged in order to improve efficiency