POV-Ray : Newsgroups : povray.advanced-users : single precision vs double precision : Re: single precision vs double precision Server Time
29 Jun 2024 02:17:13 EDT (-0400)
  Re: single precision vs double precision  
From: clipka
Date: 16 Nov 2012 14:01:34
Message: <50a68d8e$1@news.povray.org>
Am 16.11.2012 13:54, schrieb Bruno Cabasson:
> Warp <war### [at] tagpovrayorg> wrote:

>> In this context it's easy to imagine why single-precision floats (which
>> have 24 mantissa bits) will quickly become very inaccurate when you
>> perform multiplications on them. (Double-precision floats have 53 mantissa
>> bits.)
>>
>> --
>>                                                            - Warp
>
> Just for curiousity, would it be that difficult do make a full 32 bits build of
> Pov-ray, run a few scenes and see the differences between renders?

There might be more to change than just data types; some "epsilon" 
values might need to be changed as well.


> NB: AKAIK, CPUs use a 80 bits format internally in all cases.

That used to be the case in times of x87 math; SSE2 uses only 64 bit 
precision.


Post a reply to this message

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