Will using glVertex3s instead of glVertex3f reduce the size of my display list?

Started by
1 comment, last by V-man 13 years, 3 months ago
Will using glVertex3s instead of glVertex3f reduce the size of my display list?
since glVertex3s uses shorts which are 16bits and glVertex3f uses floats with are 32bits...

Advertisement
Most probably not since internally the driver stores the data in a form which is convenient to the graphics card which is probably floating point.
How did you come to the conclusion that display lists size is your memory bottleneck?
Display lists are old news. Start using VBO.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement