> > Please don't use floating point ! It isn't needed and it's slow.

> Why? Modern CPU's have a FPU. 

LibGGI is supposed to run on any hardware and to run fast. Embedded System
CPUs are often very limited.

> i386-CPU's executes floats/doubles as fast as integers 

No, it doesn't. I have written a voxel rendering engine in the last weeks
and I got a x2 speedup by going to fixedpoint integer arithmetics.

And no matter what data type you use - the problem can be solved with simple
additions which is always faster than multiplying - no matter what datatype.

Try it - write a linedrawer that uses a floatingpoint loop and compare it to
the LibGGI linedrawer.


CU, Andy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]>        =

Reply via email to