On Tue, May 05, 2009 at 10:07:57PM -0400, Timothy Normand Miller wrote: > Here's a first crack at an important part of the rasterizer. There > are something on the order of 20 different numbers that have to be > incremented every cycle. We're rasterizing triangles here, so for > instance, we have X1, which is the left edge, and X2, which is the > right edge. They also have increments dX1 and dX2 that are added to > X1 and X2 to advance their values for one scanline to the appropriate > values for the next. Almost all of these are 32-bit floats. >
This might be a stupid question, but would it help to use fixed point variables here? For example 16.16 fixed points.. back in the days of software rasterizers (on PC/MS-DOS) I always used fixed points in inner loops (and maybe also on outer loops) to boost performance.. -- Pasi _______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
