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 D1029BC69 for ; Wed, 4 Jul 2007 23:27:49 +0200 (CEST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l64LRnHc023099 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 4 Jul 2007 23:27:49 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1I6CO4-0003pf-NL for caml-list@yquem.inria.fr; Wed, 04 Jul 2007 22:27:48 +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: Wed, 4 Jul 2007 22:22:13 +0100 User-Agent: KMail/1.9.7 References: <002501c7be76$d0348630$ac01a8c0@johnyaya> In-Reply-To: <002501c7be76$d0348630$ac01a8c0@johnyaya> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707042222.13783.jon@ffconsultancy.com> X-Miltered: at concorde with ID 468C10D5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; compiler:01 ocaml:01 ocaml:01 frog:98 wrote:01 caml-list:01 data:02 essentially:02 graphics:02 slower:02 idiomatic:02 opengl:02 opengl:02 optimizing:03 optimizing:03 On Wednesday 04 July 2007 21:06:29 Grant Olson wrote: > My point was offloading the work to another subsystem doesn't give me a > very good idea of the general-case performance of the language. For most > programs the GPU is not a factor one way or the other. Don't forget the OpenGL driver. This is a very complicated and often highly optimized piece of software. In the case of display lists, it is essentially acting as an optimizing compiler. The small function that I gave posted offloads the prioritization of texture and vertex data to the OpenGL driver and good drivers (e.g. any nVidia driver) will do an excellent job of optimizing for you. When you are rendering static geometry (as you are), display lists are an excellent way to get huge performance improvements without leaving the comfort of idiomatic OCaml code. > Incidentally, Jon's code seemed to run slower on my graphics card anyway. What hardware and drivers are you using? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e