* Play with my balls
@ 2007-05-17 10:36 Jon Harrop
2007-05-17 12:23 ` [Caml-list] " Brian Hurt
2007-05-18 9:01 ` Vu Ngoc San
0 siblings, 2 replies; 6+ messages in thread
From: Jon Harrop @ 2007-05-17 10:36 UTC (permalink / raw)
To: caml-list
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.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The F#.NET Journal
http://www.ffconsultancy.com/products/fsharp_journal/?e
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Play with my balls
2007-05-17 10:36 Play with my balls Jon Harrop
@ 2007-05-17 12:23 ` Brian Hurt
2007-05-18 9:01 ` Vu Ngoc San
1 sibling, 0 replies; 6+ messages in thread
From: Brian Hurt @ 2007-05-17 12:23 UTC (permalink / raw)
To: Jon Harrop; +Cc: caml-list
Jon Harrop wrote:
>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.
>
>
>
You know, if I hadn't recognized your name, this article would have been
spam filtered *hard* due to it's subject.
:-)
Brian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Play with my balls
2007-05-17 10:36 Play with my balls Jon Harrop
2007-05-17 12:23 ` [Caml-list] " Brian Hurt
@ 2007-05-18 9:01 ` Vu Ngoc San
2007-05-18 16:11 ` Ken Rose
1 sibling, 1 reply; 6+ messages in thread
From: Vu Ngoc San @ 2007-05-18 9:01 UTC (permalink / raw)
To: Jon Harrop; +Cc: caml-list
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 :-)
San
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Play with my balls
2007-05-18 9:01 ` Vu Ngoc San
@ 2007-05-18 16:11 ` Ken Rose
2007-05-18 18:46 ` Robert Roessler
2007-05-18 19:43 ` Mathias Kende
0 siblings, 2 replies; 6+ messages in thread
From: Ken Rose @ 2007-05-18 16:11 UTC (permalink / raw)
To: Jon Harrop; +Cc: caml-list
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?
Thanks
- ken
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Play with my balls
2007-05-18 16:11 ` Ken Rose
@ 2007-05-18 18:46 ` Robert Roessler
2007-05-18 19:43 ` Mathias Kende
1 sibling, 0 replies; 6+ messages in thread
From: Robert Roessler @ 2007-05-18 18:46 UTC (permalink / raw)
To: rose; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Caml-list] Play with my balls
2007-05-18 16:11 ` Ken Rose
2007-05-18 18:46 ` Robert Roessler
@ 2007-05-18 19:43 ` Mathias Kende
1 sibling, 0 replies; 6+ messages in thread
From: Mathias Kende @ 2007-05-18 19:43 UTC (permalink / raw)
To: rose; +Cc: caml-list
Le vendredi 18 mai 2007 à 09:11 -0700, Ken Rose a écrit :
> 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?
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.
Mathias
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-18 19:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17 10:36 Play with my balls Jon Harrop
2007-05-17 12:23 ` [Caml-list] " Brian Hurt
2007-05-18 9:01 ` Vu Ngoc San
2007-05-18 16:11 ` Ken Rose
2007-05-18 18:46 ` Robert Roessler
2007-05-18 19:43 ` Mathias Kende
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox