Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2007-07-05 (03:10)
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 

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