To smooth animations and avoid unnecessary rendering, we can interrupt current rendering, if new frame has already started.