On Tue, Jan 11, 2005 at 08:09:14AM +0000, William Kendrick wrote: > getpixel/putpixel separated per color depth; function pointer arrays used now > (should cause _slight_ speed improvement)
Admittedly, using the cave-man-style stopwatch test (using Magic Fill tool on a complicated canvas at 1024x768 on my Celeron at 450MHz), I couldn't tell much a difference between the old code (which checked for BytesPerPixel==4 first, in the get/putpixel functions) and the new code (which used BytesPerPixel as an array index into a set of pointers to specialized get/putpixel functions) BUT... it was fun to write! And hopefully not too messy of an implementation. :) -bill! _______________________________________________ Tuxpaint-dev mailing list [email protected] http://tux4kids.net/mailman/listinfo/tuxpaint-dev
