caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
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 15:22:33 +0100	[thread overview]
Message-ID: <200707051522.34079.jon@ffconsultancy.com> (raw)
In-Reply-To: <361D6E79-9122-4F39-86D1-F86575D2229C@epfl.ch>

On Thursday 05 July 2007 14:52:23 Daniel Bünzli wrote:
> By the way I'm not sure how your code gets called but I think that
> the first time you'll load the texture is when the display list is
> created, so it's this command that will be retained (along with the
> creation of a texture object) and not the _use_ of a texture object.
> Thus you should first "activate" all textures once and then generate
> the display lists. No glTexImage2d call during the display list
> creation !

The latest code memoizes the textures and vertex data separately, textures in 
texture objects and vertex data in display lists. That should remove all 
texture-related calls from the display lists.

This is three times as much code and it gives the same result on my system so 
I'd like to know if anyone really does see a performance improvement from 
this.

> The only thing I know is that this happen in apple's implementation,
> see these messages [1] from a programmer working on apple's opengl. I
> never tried to time since I strive for implementation independent
> optimizations and in that case texture objects are the only way to go.
>
> [1]
> http://lists.apple.com/archives/mac-opengl/2004/Feb/msg00189.html
> http://lists.apple.com/archives/mac-opengl/2004/Feb/msg00191.html

That is certainly someone else offering the same advice but the thread does 
not conclude that the advice is good. Moreover, the code is not available (it 
may well have been wrong).

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


  reply	other threads:[~2007-07-05 14:28 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
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 [this message]
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=200707051522.34079.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;
as well as URLs for NNTP newsgroup(s).