hi all,
i need to display a video background in 3D mode (OpenGL ES) on the X50v.
i found out that uploading textures with glTexSubImage2D() is *VERY* slow. using glTexImage2D() is faster and limits me to power-of-two images which i could live with.
uploading one texture image of 256x256 every frame results in a framerate of 21fps which is not that much considering that nothing besides rendering one quad is done (rendering that quad without uploading is really fast, ~250fps).
currently i'm using
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, imgWidth,imgHeight, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, nImage->getPixels());
for uploading the texture image. does anybody know if this is the ideal pixel format for the 2700G or if another format gives more performance?
something completely different: since i just need to fill the video memory wondered if it was possible to somehow directly access it. i know that there is no glWritePixels in ES but maybe there is some other device specific method...
thanks a lot,
Daniel
i need to display a video background in 3D mode (OpenGL ES) on the X50v.
i found out that uploading textures with glTexSubImage2D() is *VERY* slow. using glTexImage2D() is faster and limits me to power-of-two images which i could live with.
uploading one texture image of 256x256 every frame results in a framerate of 21fps which is not that much considering that nothing besides rendering one quad is done (rendering that quad without uploading is really fast, ~250fps).
currently i'm using
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, imgWidth,imgHeight, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, nImage->getPixels());
for uploading the texture image. does anybody know if this is the ideal pixel format for the 2700G or if another format gives more performance?
something completely different: since i just need to fill the video memory wondered if it was possible to somehow directly access it. i know that there is no glWritePixels in ES but maybe there is some other device specific method...
thanks a lot,
Daniel