On Saturday 21 May 2005 17:42, Jerome Glisse wrote: > On 5/21/05, Ben Skeggs <[EMAIL PROTECTED]> wrote: > > Also, while I was debugging some problems in ut2004, I noticed that it > > re-uses > > the same few programs over and over, but they are translated each time. I'm > > thinking about adding a cache for the last 5 or so texenv programs so > > that we > > don't need to translated all the time. Should get a nice speedup in the > > more > > complex areas. Any thoughts on this?
That would mean that either ut2004 rewrites different TexEnv settings multiple times between rendering calls, or the Mesa core fails to detect some redundant state setting. > ut2004 has a bad ogl attitude if so, (don't have it as i don't think there is > a PPC linux version :)) But yes caching program could be usefull. Moreover > IIRC r300 can have 2 fragment program in memory ? Well, there are 64 slots for ALU instructions, and it seems to be possible to set pretty arbitrary program start offsets. So you could write two programs' ALU instructions into the chip at the same time, but I don't think you can do the same for TEX instructions, so it has very limited usability. cu, Nicolai
pgpoHGLkAguD0.pgp
Description: PGP signature