Minor speed improvements to vertex array generation