POV-Ray : Newsgroups : povray.programming : Win32 Console POV-Ray : Re: Win32 Console POV-Ray Server Time
28 Jul 2024 18:14:10 EDT (-0400)
  Re: Win32 Console POV-Ray  
From: Dick Balaska
Date: 23 Nov 1999 13:37:07
Message: <383ADE3C.61F2BC9E@buckosoft.com>
Thorsten Froehlich wrote:
> 
> In article <3820f651@news.povray.org> , "Chris Jeppesen"
> <chr### [at] digiquillcom> wrote:
> 
> > And I got rid of 607 warnings with a simple #define float double
> 
> and by forcing float to be double you just make rendering slower.  

That's not true.  By amazing coincidence, the FPU (at least for intel arch)
is the same size as a Visual C++ double.  So if your code is using floats, 
they have to be converted to doubles before stuffing in the FPU (and 
converted back to float on the way out of the FPU).  So you lose precision 
and take a performance hit by using floats.

No comment on the #define float double solution though. ;)

It's also interesting that since the '486, FPU mul/div is faster than
integer mul/div.

-- 
           _,--"
dik        `-._        ________-_______        "----
       _----'--'--------------------------------'--'----_
      //_| | \        dic### [at] buckosoftcom          / | |_\\
     (_____|_|__= Guilford CT +1.203.458.0389  =__|_|_____)
     _\_____=___   http://www.buckosoft.com     ___=_____/_
       \/-(o)-~~-(o)-~~-(o)-`------'-(o)-~~-(o)-~~-(o)-\/
Early Net Poetry:
Wustl, Wustl, ERR RIP MIT BOOT, BIND Wustl


Post a reply to this message

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