ParaView refresh rate decrease over time with data-varying source
While using LiveSource in ParaView thanks to the pqLiveSourceBehavior, the refresh rate to call
GetNeedsUpdate() is increasing over time.
How to reproduce it with BugLiveSource.zip:
- apply the patch
0001-reproduce-bug.patchon paraview v5.6.0
- compile the plugin and import the plugin to paraview
- create a
Time Source Debugin ParaView and set the
X Amplitudeproperty to 1
- after 5 to 10 minute you will see that the the source will move slower.
In this small example, I copy-past the vtkTimeSourceExample class, and transform it to a LiveSource (add the GetNeedsUpdate, remove the RequestInformation). Also I slightly modify the RequestData to generate a new position at each call.
Edit: Looks like
pqDoubleVectorPropertyWidget::propertyDomainModified is leaking observers, widgets and PropertyLinks, causing internal lists to indefinitely grow, hence slowing down ParaView. This happens with multiple calls to
propertyDomainModified, which is reproduced with a little as just play time-varying data in a loop.