John Carmack wrote:
> 
> The following diff helps the cinematic playback speed in Q2/Q3 (which is
> just a big texSubImage call each frame), but the other part of the problem
> is the memory allocation and copying going on in unpackimage.
> 
> How reasonable would it be to allow properly formatted teximage/texsubimage
> calls to bypass the unpacking stage?  Could the images be flagged and made
> to reference the data in place when it is known to be ok, instead of
> allocating/copying/freeing?
> 
> This would be a good general purpose optimization that would help a lot of
> applications that pump a lot of texels through mesa.

All the texture download paths in Mesa are quite slow.  That's some
old code that's overdue for a rewrite.  I hope to do so in the not-
too-distant future.

Thanks for the patch.  I'll examine it and commit it in the next 24 hrs.

-Brian


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to