<div dir="ltr">Hi David and Ken,<div><br></div><div>David is right about the number of mappers and actors.</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>
<span class=""><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>
</span>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>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Mapper's MTime is updated because a mouse movement would trigger <b>vtkCompositePolyDtaMapper2::ComputeBounds</b>. It would then update vtkMapper MTime. I'm looking at the proposed method now.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
David</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards<div>Haocheng</div><div><br></div><div>Haocheng LIU</div><div><span style="color:rgb(0,0,0);font-size:12.8px">Kitware, Inc.</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">R&D Engineer</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">21 Corporate Drive</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Clifton Park, NY 12065-8662</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Phone: </span><a href="tel:(518)%20881-4421" value="+15188814443" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">518-881-4421</a><br></div></div></div></div></div>
</div></div>