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.7 required=5.0 tests=AWL,SPF_SOFTFAIL 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 5FB28BD3D for ; Sat, 7 Jul 2007 13:41:02 +0200 (CEST) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l66JlUcm005077 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 6 Jul 2007 21:47:31 +0200 Received: from [80.229.56.224] (helo=beast.local) by pih-relay04.plus.net with esmtp (Exim) id 1I6tm6-0006Wk-7X for caml-list@yquem.inria.fr; Fri, 06 Jul 2007 20:47:30 +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: Fri, 6 Jul 2007 20:41:58 +0100 User-Agent: KMail/1.9.7 References: <000001c7bf5d$de5bf260$ac01a8c0@johnyaya> In-Reply-To: <000001c7bf5d$de5bf260$ac01a8c0@johnyaya> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707062041.58352.jon@ffconsultancy.com> X-Miltered: at discorde with ID 468E9C52.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; memoization:01 allocating:01 initialized:01 bug:01 iirc:01 ocaml:01 ocaml:01 mate:98 frog:98 wrote:01 caml-list:01 hangs:02 graphics:02 opengl:02 opengl:02 On Friday 06 July 2007 00:40:24 Grant Olson wrote: > It went from 10 fps before to 70 fps with the display lists. That's more like it. :-) > (1) There were a few hangs in the display while display lists were > intially being created. The code should probably be run at startup. The memoization technique I used is a good way to avoid that problem because the display lists are lazily allocated. So you can't get premature allocation bugs (a problem if you try allocating global OpenGL entities before the GL is initialized). > (2) The textures got screwy after text got displayed. For example, > working through a fools' mate, when I take the pawn the textures break. Probably a bug in ATi's OpenGL implementation. IIRC, John Carmack used display lists to cache adaptive tesselations of Bezier surfaces in Quake III and had similar problems. nVidia's drivers are much better... :-) > I didn't get around to all of the other optimizations. I'm a little too > busy right now to go through all of that, but I'll give it a try > eventually. I'm wondering what impact meomizing the 'draw_frame_triangles' > will have on memory usage. System memory or graphics card memory? Does it take up much memory? > I'm guessing that's one of the reasons the files were stored in their given > format to begin with. Maybe. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e