Handles 100 balls with sub-centisecond accuracy on my machine.
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The F#.NET Journal
Caml-list mailing list. Subscription management:
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
>Real-time 2D rigid body simulation with OpenGL visualization in under 400
>lines of OCaml code:
>Handles 100 balls with sub-centisecond accuracy on my machine.
You know, if I hadn't recognized your name, this article would have been
spam filtered *hard* due to it's subject.
Or in my case, by just falling through them. I'm using a 2GHz AMD64x2,
and getting about 2fps from it. Anybody have any idea what might be
You don't say anything about your OS or graphics H/W, but as you
appear to be running 64-bit Linux, I will go out on a limb and say you
probably have graphics driver problems... ;)
Generally speaking, these have historically lagged [significantly]
behind Windows drivers performance-wise, as they don't get nearly as
much attention from the graphics chip manufacturers.
Contrary to what is (was in fact) written on the web site, you should
compile the software with ocamlopt rather than with ocamlc.
I don't think that it relies heavily on the graphic card's driver.