Execution order question

I created a small patch to test out execution order and came across something that I have trouble understanding. Below you see two sample and hold (S+H) nodes which store a time variable at their output once a trigger is hit. The second S+H node is only triggered after an expensive operation is performed, which takes about 0.5 seconds. In theory, the two pads should hold two different values for time, but this does not happen, as you can see in the gif. I looked at the emitted C# code and both pads are indeed separate double variables computed before and after the expensive operation. Is something different happening under the hood?

59

hi maro,

the clock provided to the Seconds node by the runtime is a frame clock. it has a fixed time for one frame (call of Update). this is important for animation nodes that have to be in sync for one frame. it’s also common in game engines to have a global frame time.

in order to get the current real-time, connect the RealTimeClock to both Seconds nodes.

Indeed it works with RealTimeClock. Thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.