> Recently, I implemented an algorithm to do perspective texturemapping at
> a reasonable speed, using 8 or 16 pixel spans, and using the FPU to do
> the neccessary divides while the integer processor draws the pixels. I
> am rather content with this code, but I am wondering: Would it be
> possible to extend the idea of 16 pixel spans to 16x16 pixel squares? It
> would greatly reduce the number of divides! Has anyone tried to
> implement such an algorithm?
> Jacco Bikker.
It probably wouldn't speed it up that much as you expect as on most
machines the divide is free, as long as it's implemented correctly.
While the 16 pixels are being drawn in the integer pipes of the
the next divide is in the FPU pipe and is completed before it is
required, thats the point of doing it in the FPU. It's going to be the
integer stuff between the divides that is the bottle neck.
|| Robin Patenall Token Coder NetGamer Soc. |
|| NetGamer Soc http://www.ee.surrey.ac.uk/Societies/netgamer/ |
|| Homepage http://www.ee.surrey.ac.uk/Personal/ee41rp/ |