From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ANN: Chess III Arena 0.5
Date: Thu, 5 Jul 2007 04:05:11 +0100 [thread overview]
Message-ID: <200707050405.12031.jon@ffconsultancy.com> (raw)
In-Reply-To: <3E92B237-EEF9-48BF-A0B9-C3793C1B3D9D@epfl.ch>
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
next prev parent reply other threads:[~2007-07-05 3:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 21:48 Grant Olson
2007-07-03 22:43 ` [Caml-list] " Jon Harrop
2007-07-04 2:18 ` Grant Olson
2007-07-04 8:00 ` Daniel Bünzli
2007-07-04 20:06 ` Grant Olson
2007-07-04 20:51 ` Bünzli Daniel
2007-07-04 21:22 ` Jon Harrop
2007-07-05 0:25 ` Daniel Bünzli
2007-07-05 3:05 ` Jon Harrop [this message]
2007-07-05 7:45 ` Daniel Bünzli
2007-07-05 12:52 ` Jon Harrop
2007-07-05 13:37 ` Daniel Bünzli
2007-07-05 13:52 ` Daniel Bünzli
2007-07-05 14:22 ` Jon Harrop
2007-07-05 14:43 ` Daniel Bünzli
2007-07-05 23:40 ` Grant Olson
2007-07-06 19:41 ` Jon Harrop
2007-07-04 10:58 ` Jon Harrop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707050405.12031.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox