Eliminating Flicker
By overriding update, we’ve only addressed half of the problem. We stop the flicker associated with the white washing of our canvas, but still must endure the ‘gray wash’ caused by our code.
The heart of the problem: We draw gray pixels on an area, and then replace them with our red pixels. The video memory cannot refresh these changes smoothly.