In my application I did two tests to prouve what I’m saying:
1 case:
In each time I want to render a new 3D surface actor, I delete the whole vtkGenericRenderWindow and the previous actor / mapper, and I re-create a new ones, doing this the rendering is good but I’m risking to have Too many open WebGL contexts warning.
2 case:
In each time I want to render a new 3D surface actor, I re-use the same vtkGenericRenderWindow and I delete the previous actor/ mapper and I create new actor/ mapper, doing this the rendering is slow, so when I move the 3D surface with the mouse it is moving so slow.
Thank you for your answer,
Yes I can say that my data is very large, each polydata (used by the 3D surface actors) size is 30MB and I have 33 patients,
This how I’m doing it in my code:
PS: context.current[3].GLWindow is the reference holding my GenericRenderWindow
Can you make a devtools performance profile of the slow 3D surface manipulation? I don’t suppose that you have all 33 polydatas visible in the scene, since it just looks like one. But it shouldn’t be that slow.