Pass vertex array instead of calling viz.vertex()?
At the moment I use a lot of viz.vertex() calls to create a big model. This is slower than using pre-made models and using viz.add(), but I can't use that in my situation at the moment unfortunately.
My question. Instead of doing something like this:
call viz.startLayer() 1 time
call viz.vertex() a 100 times
call viz.endLayer() 1 time
is it possible to simply pass an array or list with vertices? So something like:
call viz.startLayer() 1 time
call viz.vertexArray() 1 time
call viz.endLayer() 1 time
I'm hoping to get a performance boost by not having to have Vizard do the IPC call a large number of times, and thereby reduce my startup time.
|