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=2.7 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,SPF_NEUTRAL 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 73673BC69 for ; Wed, 4 Jul 2007 04:18:24 +0200 (CEST) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l642IN6H009349 for ; Wed, 4 Jul 2007 04:18:24 +0200 Received: from johnyaya ([151.201.127.58]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JKM00GCGUE540RB@vms042.mailsrvcs.net> for caml-list@yquem.inria.fr; Tue, 03 Jul 2007 21:18:11 -0500 (CDT) Date: Tue, 03 Jul 2007 22:18:06 -0400 From: "Grant Olson" Subject: RE: [Caml-list] ANN: Chess III Arena 0.5 In-reply-to: <200707032343.44111.jon@ffconsultancy.com> To: Message-id: <000801c7bde1$8fd969b0$ac01a8c0@johnyaya> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Mailer: Microsoft Office Outlook 11 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: Ace9xOn57XOPkYVVQmeIr5Ib/hIw+wAG/7VA X-Miltered: at discorde with ID 468B036F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hashtbl:01 hashtbl:01 model:01 speedup:01 ocaml's:01 verizon:98 compile:01 caml-list:01 graphics:02 let:03 let:03 geometry:04 0.5:94 inria:06 inria:06 > From: caml-list-bounces@yquem.inria.fr > [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Jon Harrop > let draw_md3 = > let m = Hashtbl.create 1 in > fun x y -> > try GlList.call(Hashtbl.find m (x, y)) with Not_found -> > let list = GlList.create `compile in > draw_md3 x y; > GlList.ends(); > GlList.call list; > Hashtbl.add m (x, y) list > > This simply memoizes the rendering of each frame of animation > for each model in a display list. The result is that your > geometry is stored on the graphics card and rendered > directly, hence the gratuitous speedup. > Thanks. I'll give it a try. I'm wondering if it will have any performance impact for the software rendering on my linux box. You know I think I saw you post something similar before, and ignored it because I didn't want to trick myself into thinking the GPU's speed was actually Ocaml's speed. Now that I have a better feel for that though, might as well let the frame-rates fly! -Grant