Hi all,
I got my NPOT textures working, however speed is something to be desired.
hwidth = 960; //(1920 / 2)
height = 1080;
...
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texture1);
glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGB, hwidth, height, 0, GL_RGB, GL_UNSIGNED_BYTE, partialFrame1);
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texture2);
glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGB, hwidth, height, 0, GL_RGB, GL_UNSIGNED_BYTE, partialFrame2);
its taking around 10ms to 30ms to load 2 textures of 960x1080 ... is it possible to bring this number down to 2 to 6ms?
Also, I am using double-buffering. this call:
...
//glBegin...Quad...glTexCoord2f...glVertex2f...
//...draw
//...the
//...texture
//glEnd
...
SwapBuffers(hDC);
usually takes 2ms, but sometimes jumps to 45ms!!! any ideas?
the hardware on this machine is core 2 duo E6700, 4 gigs ram (DDR2 400), Quadro FX 1500
thanks all!