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
Play with my balls
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-18 (18:46)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] Play with my balls
Ken Rose wrote:
> Vu Ngoc San wrote:
>> Jon Harrop a écrit :
>>> Real-time 2D rigid body simulation with OpenGL visualization in under
>>> 400 lines of OCaml code:
>>>
>>>   http://www.ffconsultancy.com/ocaml/balls/
>>>
>>> Handles 100 balls with sub-centisecond accuracy on my machine.
>>>
>> very nice indeed. Note that balls can cross walls when resizing the
>> window :-)
> 
> 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
> going wrong?

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.

Robert Roessler
roessler@rftp.com
http://www.rftp.com