Version française
Home     About     Download     Resources     Contact us    
Browse thread
Mini ray tracer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julian Brown <brown@c...>
Subject: Re: Mini ray tracer
On 2005-04-28, Jon Harrop <jon@ffconsultancy.com> wrote:
>
> I just knocked up a little ray tracer in OCaml to test its viability for the 
> shootout:
>
>   http://www.ffconsultancy.com/free/ray_tracer/
>
> Here, it traces a 768^2 image of 66,430 spheres in 22.51s on a 1.2GHz 
> Athlon-Thunderbird and in 7.24s on a 1.8GHz Athlon 64.
>
> I've boiled it down to 94 LOC and posted it to the shootout mailing list.

Re:

  http://www.ffconsultancy.com/free/ray_tracer/comparison.html

Interesting results, but it's kind of unfair to leave optimisation turned
off for g++! What kind of results do you get with, say, -O3 -ffast-math?

Cheers,

Julian