Re: Texture rendering performance problems
Posted by
Sven Gothel on
Jul 14, 2010; 2:44pm
URL: https://forum.jogamp.org/Texture-rendering-performance-problems-tp966089p966671.html
On Wednesday, July 14, 2010 14:44:33 Demoscene Passivist [via jogamp] wrote:
>
> A common slowdown reason is mismatched glTexImage2D parameters that would
> force format conversions to occur on the CPU side. Most video streams are in
> GL_RGB format and not GL_RGBA wich is to my experience the most widely
> accelerated texture format.
>
> To test if the problem lies in a wrong texture format simply change the
> glTexImage2D to use GL_RGBA. The video will be fucked up but performance
> should greatly increase. If so u know thats most likely the problem.
>
>
BGRA can be assumed as to be the HW presentation
at least for all the windows cards (NV, ATI, ..).
textureInternalFormat=GL.GL_RGBA8;
textureDataFormat=GL2.GL_BGRA;
textureDataType=GL2.GL_UNSIGNED_INT_8_8_8_8_REV;
~Sven