POV-Ray : Newsgroups : povray.advanced-users : Isosurface speed : Re: Isosurface speed Server Time
28 Jul 2024 18:16:32 EDT (-0400)
  Re: Isosurface speed  
From: Andrew C on Mozilla
Date: 24 Jul 2004 03:55:39
Message: <410215fb$1@news.povray.org>
>>Which is faster (in an isosurface)?
>>
>>pow(x, 2) or x*x?
>>
>>(Ditto for x^3.)
> 
> 
> The speed will be identical for all of these.  Further, note that all
> constant integer powers up to eight will be optimised such to take as few
> multiplications as possible, i.e. a power of four only takes two
> multiplications instead of four, and a power of eight only takes three
> multiplications.

Excellent.

POV-Ray Rocks!(tm)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.