On Wed, 2015-07-29 at 01:49 -0700, rockac...@gmail.com wrote: > The dirty rects are done correctly. When you call most draw functions pygame > returns a "dirty rect"--that is, a rect that squares off the area of the > surface that has changed. If you call update() with rects or a rect as an > argument it only updates those spots on the screen/surface and thus does not > have to process the full screen. > It's much faster.
Right, so it's only updating the keys, and not the background. BUT, it is still redrawing the area for ALL keys (which appears to be atleast half the screen), instead of only the single key which has changed. My second suggestion will still make sure only the single key is redrawn.
signature.asc
Description: This is a digitally signed message part