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: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] ANN: Chess III Arena 0.5
On Thursday 05 July 2007 01:25:28 Daniel Bünzli wrote:
> Le 4 juil. 07 à 23:22, Jon Harrop a écrit :
> > 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 
software rendered, and even then I'd be surprised because it avoids tens of 
thousands of OCaml->C calls by keeping the vertex and texture data with the 
driver.

For me, the extra 9 lines of code improve performance from 9 to 600fps!

> Looking at the call graph of 
> 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 lists 
should be tiny compared to the difference with immediate mode, which is what 
we're comparing here.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e