POV-Ray : Newsgroups : povray.off-topic : Fast Inverse Square Root explained : Re: Fast Inverse Square Root explained Server Time
28 Jul 2024 22:18:31 EDT (-0400)
  Re: Fast Inverse Square Root explained  
From: scott
Date: 17 Sep 2012 10:21:07
Message: <505731d3$1@news.povray.org>
>> Which begs the question: Would it be worth to use this approximation -
>> maybe with a few more steps of newton - in POV-Ray, or at least in an
>> experimental patch thereof?
>
>
> If you consider that:
>   1. POV-Ray has currently no requirement on using IEEE-754 float (of
> exactly 32 bits)
>   2. The FLOAT & other types of POV-Ray are customisable
>
> such approximation would impact:
>   * portability (you now MUST have 32 bits floats, nothing else)
>   * precision or speed (if you need newton steps... )
>   * as black-box magic, it would be a hell to debug if you ever get a
> typo on one digit.

It would be interesting to see how much it affected the speed first. If 
it was some significant speed-up with no visible loss in image accuracy 
then I suspect many people would be happy to install a custom/patched 
version to make use of the speed-up.


Post a reply to this message

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