How much, or does it even affect performance when I use more buffers (on Vertex arrays, for example) in opengl calls ?
For example , in this case, I enable 3 arrays (normal, vertex, color).
GL11.glEnableClientState(GL11.GL_NORMAL_ARRAY);
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
GL11.glEnableClientState(GL11.GL_COLOR_ARRAY);
/* populate buffers */
GL11.glDisableClientState(GL11.GL_NORMAL_ARRAY);
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
GL11.glDisableClientState(GL11.GL_COLOR_ARRAY);
But if I drop the color array, how faster will it be ? Will it make any difference at all ? (not counting the filling of the float arrays . let’s suppose they are static)
GL11.glEnableClientState(GL11.GL_NORMAL_ARRAY);
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
/* populate buffers */
GL11.glDisableClientState(GL11.GL_NORMAL_ARRAY);
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
Thank you .