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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D109DBC69 for ; Thu, 5 Jul 2007 05:10:47 +0200 (CEST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l653Al01011687 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 5 Jul 2007 05:10:47 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1I6Hjz-0005VD-1m for caml-list@yquem.inria.fr; Thu, 05 Jul 2007 04:10:47 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ANN: Chess III Arena 0.5 Date: Thu, 5 Jul 2007 04:05:11 +0100 User-Agent: KMail/1.9.7 References: <002501c7be76$d0348630$ac01a8c0@johnyaya> <200707042222.13783.jon@ffconsultancy.com> <3E92B237-EEF9-48BF-A0B9-C3793C1B3D9D@epfl.ch> In-Reply-To: <3E92B237-EEF9-48BF-A0B9-C3793C1B3D9D@epfl.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200707050405.12031.jon@ffconsultancy.com> X-Miltered: at discorde with ID 468C6137.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 ocaml-:01 ocaml:01 ocaml:01 frog:98 wrote:01 graph:01 avoids:01 caml-list:01 data:02 objects:02 objects:02 optimization:03 seems:03 driver:04 On Thursday 05 July 2007 01:25:28 Daniel B=FCnzli wrote: > Le 4 juil. 07 =E0 23:22, Jon Harrop a =E9crit : > > What hardware and drivers are you using? > > This may not be due to hardware. Something is certainly wrong and I don't think its my code. :-) There's no way this optimization should slow the program down unless its=20 software rendered, and even then I'd be surprised because it avoids tens of= =20 thousands of OCaml->C calls by keeping the vertex and texture data with the= =20 driver. =46or me, the extra 9 lines of code improve performance from 9 to 600fps! > Looking at the call graph of=20 > draw_md3 it seems that a glTexImage2D gets captured by the display > list. On some platforms this is not a good thing, texture objects > (GlTex.gen_texture etc.) should be used instead. See for example > question 16.090 here [1]. Yes but the performance difference between texture objects and display list= s=20 should be tiny compared to the difference with immediate mode, which is wha= t=20 we're comparing here. =2D-=20 Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e