Some OpenGL performance testing code