From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 76F0CBC0A for ; Fri, 18 May 2007 18:12:12 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.195]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4IGCBBN006084 for ; Fri, 18 May 2007 18:12:12 +0200 Received: from [75.105.170.165] (helo=[192.168.1.4]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis), id 0MKpCa-1Hp53g3zYb-0001b1; Fri, 18 May 2007 12:12:10 -0400 Message-ID: <464DD027.8000900@nc-sys.com> Date: Fri, 18 May 2007 09:11:19 -0700 From: Ken Rose Reply-To: rose@acm.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.2) Gecko/20070320 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Jon Harrop Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Play with my balls References: <200705171136.18503.jon@ffconsultancy.com> <464D6B58.40408@ujf-grenoble.fr> In-Reply-To: <464D6B58.40408@ujf-grenoble.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX1/v5I/iOf7Tt8AKnDF5OdHeoURdXHtvlTxJBP0 N055NICRsFvEnWL2eJq5CUfsAZys2AVdGBr2QxaClyFkD7zyL+ +GtxczAc0baJIGzPfV5bM4TVvCNsqYY X-Miltered: at concorde with ID 464DD05B.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 wrote:01 caml-list:01 opengl:02 handles:03 simulation:05 ecrit:06 indeed:07 anybody:07 i'm:09 wrong:09 machine:09 ghz:90 body:89 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