Catalyst 2 Live Visualization can't handle fast simulations
I am trying to use Catalyst for my simulation engine. The simulations I am running are fast, each timestep tooks just around 20ms, and I want to visualize the simulation in realtime using Catalyst Live in ParaView GUI.
However, ParaView GUI freezes when Catalyst sends data faster than it can be processed by the GUI. Simulation continues just fine, and the Catalyst script still runs its pipeline, but in the GUI I can't see any updated until the simulation finishes and Catalyst stops sending new data to the GUI.
This is easily reproducible with the Catalyst examples in Paraview repo, as already commented here: https://discourse.paraview.org/t/problems-with-catalyst2-and-paraview-live-visualization/11401/3
https://discourse.paraview.org/t/catalyst-super-slow-with-live-visualization/13694/8
If I add a sleep(0.5) in the Catalyst script in the catalyst_execute function, then the GUI has enough time to process all the data it has received before it receives new data, and the GUI doesn't freeze