jeffheaton's picture

Look at the two applets below. One applet uses double buffering. The other does not. Notice the extra flicker present in the non-double buffering applet? This is because all drawing is done directly to the screen. So when the black rectangle is drawn, it momentarily erases the balls. This causes a slight flicker. The double buffered version has no such flicker because everything is drawn at once.





Double Buffer
Non-Double Buffer

Copyright 2005 - 2012 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright, license and trademark information.