[Paraview] Automatically updating time variable dataset

corinna reuter corinnareuter75 at gmail.com
Wed Jun 22 15:54:01 EDT 2016


This is not practical. We have tried this before. The data are updated in a
background thread, so that data to be displayed are always available
without any delay. The continuous redrawing uses 100% cpu. Even with a
refresh rate reduced to 20 updates per second (sleep commands) cpu usage is
still 70%. Slower refresh rates cause unwanted effects for calculations
that vary quickly. This load is predominantly caused by the communication
overhead and almost independent of the actual rendering work (tested with a
50x50 pixel window and single triangle dataset).

Does anybody have a real solution how a background thread can wake up the
main thread when data has changed? A continuous trigger from the GUI wastes
too many resources. An event based mechanism is needed.

Conny


On Wed, Jun 22, 2016 at 12:59 PM, Mathieu Westphal <
mathieu.westphal at kitware.com> wrote:

> Hello
>
> A work around would be to declare two (fake) timestep in your reader and
> play the animation in loop in paraview.
>
> Regards,
>
> Mathieu Westphal
>
> On Wed, Jun 22, 2016 at 12:51 PM, corinna reuter <
> corinnareuter75 at gmail.com> wrote:
>
>> A question to the specialists:
>> Can Paraview refresh its view automatically when a dataset updates its
>> state?
>>
>> A plugin starts a background thread that calculates new dataset values
>> periodically. Each time a calculation step is finished, all filters and
>> views connected to the generated dataset should be updated. (Something
>> similar is done in a live catalyst connection. But catalyst has a serious
>> drawback for large datasets. It runs in a separate process, so that the
>> datasets cannot be in shared memory, but have to be transferred, requiring
>> redundant storage space and wasted network bandwidth.) Although paraview is
>> said to be not thread safe, it should't be problematic as long as access to
>> VTK classes is limited to the main thread. The difficult question is, how
>> can paraview be notified that a plugin has updated its output while the
>> main thread only waits for GUI or network events when idle?
>>
>> Any ideas or recommendations?
>> Conny
>>
>> _______________________________________________
>> 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 ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160622/689c8d3d/attachment.html>


More information about the ParaView mailing list