cost of texturing
Hi, I am wondering how expensive it is to change the current texture being used by OpenGL via the glBindTexture command?
Would it be worthwhile organizing a mesh ordering it by which texture it uses (like grouping by texture type)?
I haven''t had a chance to test the performance hit properly of changing the texture rapidly....
Thanks, Cel
Cel aka Razehttp://chopper2k.qgl.org
Sorting poly''s by texture would increase your performance, because calling a function for example 10 times by frame is faster then calling it 1000 times. Minimizing function calls to the same function will mostly increase performance.
The same principle goes with vertex arrays : by using them you can avoid calling glVertex3f and other functions all the time and therefore performance increase.
The same principle goes with vertex arrays : by using them you can avoid calling glVertex3f and other functions all the time and therefore performance increase.
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement