Calculate VBO size before upload