Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Announce: glome-0.2 (ocaml-based raytracer)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-18 (14:03)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Announce: glome-0.2 (ocaml-based raytracer)
On Thursday 18 January 2007 10:29, Jim Snow wrote:
> > What is the memory use of my version like?
> About 1.5 gigs for the 800k triangle level 4 sphereflake, same as my
> version 0.2.  I think the memory consumption is elsewhere.  Most of the
> memory gets consumed as the kdtree is being built.

I hit a shortcoming of OCaml's here. For a ray tracer, single-precision floats 
are fine. But in OCaml you can't mix them with other types in a data 
structure to save memory, you just use a pointer to a BigArray. I think this 
is a justification for having float32 in the language.

I'll take the rest of the discussion back off list...

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists