<div dir="ltr">You are using 258 mappers and actors right to go with the 258 datasets?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 9, 2018 at 11:36 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Haocheng,<br>
<br>
> I have a use case that I want to glyph several hundreds of vtkDatasets. However, the frame rate becomes super slow since vtkOpenGLyph3DMapper would call rebuildstructures function for each dataset. With 258 vtkDatasets, it takes more than 4 seconds to render one frame and spends 52% of the time doing rebuilding stuff(Rebuilding the structure 258 times even though nothing new!). I'm thinking to remove Line 515 in /Rendering/OpenGL2/<wbr>vtkOpenGLGlyph3DMapper.cxx and pass a flag instead to trigger the rebuilding if a new color is assigned.<br>
<br>
I'm not sure that change would not be enough to guarantee that the vtkOpenGLGlyph3DMapper::<wbr>vtkOpenGLGlyph3DMapperEntry objects are kept up to date.<br>
<br>
It might be better to understand why the mapper's MTime is being updated every render. If we can't use the mapper's MTime, then we should probably add a new MTime member to the mapper that gets modified when things that *do* matter (like block color changes) occur.<br>
<br>
David<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>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div></div></div>
</div>