<div dir="ltr">Hi Andrew -<div>One potentially easy thing is to use the newest VTK release - performance often improves between releases.</div><div>I see one noob mistake :) <span style="font-size:12.8px">ImmediateModeRenderingOn() doesn't do anything with current VTK - everything is shader-based.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I can see that you are dynamically changing the size of the entire dataset, to add a small number (~360) of points. I would definitely consider</span></div><div><span style="font-size:12.8px">dividing the points up into batches, so that you are adding points to a much smaller set. I mean several v</span><span style="font-size:12.8px">tkPoints() and vtkCellArray() instead of one.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I believe you might also be able to pre-allocate the expected size of the set, but I'm not sure how to do that?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards,</span></div><div><span style="font-size:12.8px">Aron</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 26, 2017 at 5:11 AM, Andrew <span dir="ltr"><<a href="mailto:Andrew@ryonic.io" target="_blank">Andrew@ryonic.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does Anyone have a more efficient solution?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>