Posted by Seth Willits on February 10, 2004 at 14:11:39:
On Feb 10, 2004, at 12:03 PM, Frank C wrote:>> 4. Does Quesa make a lot of sqrt calls?
>> Would a look up table be faster in some cases or a less accurate sqrt
>> call?
>> Or is the more accurate called really needed in Quesa?
>
> According to the docs, the Q3Math_SquareRoot and Q3Math_InvSquareRoot
> functions use approximations - but looking at the source, they return
> sqrt(x) and 1.0/sqrt(x). I guess this was a "todo" that never got
> done...What about __fsqrt? Brian used it in all of his code. I'm assuming it
was because it was/is faster than sqrt.Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames"Your friend is the person who knows all about you and still likes you."
-- Elbert Green Hubbard
------------------------------------------------------------------------
---