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).
1 2 3 4 5 6 7
| GL11.glEnableClientState(GL11.GL_NORMAL_ARRAY); GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY); GL11.glEnableClientState(GL11.GL_COLOR_ARRAY);
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)
1 2 3 4 5
| GL11.glEnableClientState(GL11.GL_NORMAL_ARRAY); GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
GL11.glDisableClientState(GL11.GL_NORMAL_ARRAY); GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY); |
Thank you .