English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-05-02 (19:57)
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.



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?