[vtkusers] speed up vtkTransform::SetMatrix by not calling internally Modified twice ??
Maarten Beek
beekmaarten at yahoo.com
Mon Apr 28 11:31:03 EDT 2014
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/20140428/b17a2432/attachment.html>
More information about the vtkusers
mailing list