Version française
Home     About     Download     Resources     Contact us    
Browse thread
ANN: Chess III Arena 0.5
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Grant Olson <olsongt@v...>
Subject: RE: [Caml-list] ANN: Chess III Arena 0.5
> 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