Google Groups Home
Help | Sign in
Message from discussion Mini ray tracer
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jon Harrop  
View profile
 More options 10 May 2005, 04:52
Newsgroups: comp.graphics.rendering.raytracing
From: Jon Harrop <use...@jdh30.plus.com>
Date: Tue, 10 May 2005 04:52:38 +0100
Local: Tues 10 May 2005 04:52
Subject: Re: Mini ray tracer

asamard...@matf.bg.ac.yu wrote:
> Great work.  What is default floating point type used by OCaml
> compiler?

Double precision.

> I got running time of about 36s for scene level 3 on
> Pentium3 machine and running time of about 25s when all references to
> "double" type in C++ code changed to "float" (and float is usually
> "good enough" for ray tracing)...

I agree that single precision is usually good enough for ray tracing.
However, when I tried the same optimisation I found that it made the
program much faster on 32-bit x86 and much slower on 64-bit AMD64. I assume
this is a float alignment issue.

Also, it generates (numerically) different results, which makes it trickier
to validate against the OCaml.

--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google