Improved performance by using vectorArrays instead of appendVertex