Cycle buffer.
Update UI from EDT.
Fixed repaint problems: artifacts, margin and blinking.