Enables or disables immediate display updates for all functions that prints or draws anything. By default, autoFlush is enabled.
Behind the scenes, every single call to functions that update the display first updates an internal image, and then flushes this image to the display. When you do animations, this flushing for every single drawing operation may lead to flicker. In such cases, you may want to disable the automatic flushing, and take care of the flushing yourself: Call autoFlush(FALSE), do all the drawing you want in a single animation step, and call flush to have everything displayed.
autoFlush(FALSE);
autoFlush(TRUE);