POV-Ray : Newsgroups : povray.general : Counter-intuitive behaviour in media scattering : Re: Counter-intuitive behaviour in media scattering Server Time
29 Jul 2024 12:27:01 EDT (-0400)
  Re: Counter-intuitive behaviour in media scattering  
From: Warp
Date: 28 May 2011 07:43:17
Message: <4de0dfd5@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> You should use pow(x,2) instead of x*x. It's a little bit faster.

  Can you give a technical explanation of why? (Note that in C/C++ calling
the math library function pow() is, in general, significantly slower than
a floating point multiplication.)

-- 
                                                          - Warp


Post a reply to this message

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