[vtkusers] speed up vtkTransform::SetMatrix by not calling internally Modified twice ??

Arnaud Gelas arnaudgelas at gmail.com
Tue Apr 29 07:35:58 EDT 2014


Hi Maarten,

Thank you very much for your reply!

By mistake, I have connected the Modified event to a Render() call. Although the submitted patch solved the issue, the real problem was in my code…

Thanks,
Arnaud

On Apr 28, 2014, at 5:31 PM, Maarten Beek <beekmaarten at yahoo.com> wrote:

> I didn't think a call to Modified() would cause a call to Update(). I thought updates only happen when the pipeline executes (e.g. after Render() call). So unless you somehow connected a Modified() call to a Render() call, you have no reason to worry.
> Or are you multi-threading...?
> 
> Maarten
> On Monday, April 28, 2014 11:08:09 AM, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
> How about that?
> 
>     http://review.source.kitware.com/15294
> 
> On Apr 28, 2014, at 4:34 PM, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
> 
> > Hi all,
> > 
> > I have a large scene, and it happens that if I set the matrix directory to one vtkTransform, I can see 2 updates of the rendered scene…
> > 
> > It happens cause in vtkTransform::SetMatrix(), the matrix is first set to the identity with one call to Modified, then it sets the matrix and there is another call to Modified.
> > 
> > What would be the preferred way to proceed to make it with a single call to Modified?
> > 
> > Thanks,
> > Arnaud
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140429/7fac723b/attachment.html>


More information about the vtkusers mailing list