Smooth Animation in LocalView #459
Unanswered
evdkmv
asked this question in
Trame/ParaView
Replies: 1 comment 3 replies
-
We have a caching mechanism for the arrays, so if you were doing a 1 pass "slow" and then the following ones faster, it should be fine. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Trame Community,
I am exploring animation in Trame and have stumbled upon the following issue.
Let's consider this paraview TimeAnimation example with a tiny modification so that we could use
paraview.VtkLocalView
instead ofparaview.VtkRemoteLocalView
(see the snippet below).With
await asyncio.sleep(0.1)
, the animation in local view works fine; however, it does not look very smooth. To increase the speed and smoothness, we could useawait asyncio.sleep(0.01)
. Unfortunately, the sleep time of 0.01 breaks the animation (the picture is not updating, see video below).Since setting
asyncio.sleep(0.01)
and achieving very smooth animation is not a problem with remote rendering, my guess is that, for the local rendering, some data processing and view update cannot be done within 0.01 seconds (do I understand the problem correctly?)My question is: Can the data be preprocessed or cached before starting the animation in local view?
Any advice or guidance on how to achieve a smoother animation in local view would be greatly appreciated.
Thank you!
local_view_animation.mov
Beta Was this translation helpful? Give feedback.
All reactions