flicker-free drawing with delay