avoid painting empty rects
gNoDelay=1