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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4A392BC0A for ; Fri, 18 May 2007 20:46:35 +0200 (CEST) Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l4IIkXED016199 for ; Fri, 18 May 2007 20:46:34 +0200 Received: (qmail 54132 invoked from network); 18 May 2007 18:46:32 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@69.230.191.246 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 18 May 2007 18:46:31 -0000 X-YMail-OSG: pE90P3IVM1lgxkGk5F0Az25ZFw3Yy9aIb2727qm_AhOC.31r._P3llnqFmVPEF7cFwKMPvUXLIj0Hi1m8iXaUjbHIzapzbPxlbwht1telTx.SnL3VJE- Message-ID: <464DF47C.2020904@rftp.com> Date: Fri, 18 May 2007 11:46:20 -0700 From: Robert Roessler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070512 Mnenhy/0.7.4.0 SeaMonkey/1.5a MIME-Version: 1.0 To: rose@acm.org 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> <464DD027.8000900@nc-sys.com> In-Reply-To: <464DD027.8000900@nc-sys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 464DF489.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 wrote:01 wrote:01 caml-list:01 graphics:02 graphics:02 opengl:02 handles:03 generally:03 driver:04 simulation:05 ecrit:06 linux:06 probably:07 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