Replies: 1 comment 1 reply
-
@loadingcn Thank you for your fast version of link force calculation. Your version is great, we also tried to implement a similar one, but ran into a problem as I see your version also has one. Your version sums up small In the context of link forces, it is important to apply to node the force from each link sequentially, so that the next force applied depends on the previous force applied to the node. This is similar to a classical approach. Unfortunately, I couldn't think of a way to implement this in an optimal parallel approach 🤔. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have implement a fast version of link force calculation here:
loadingcn@f41787e
Basically, the vertex shader treat each link as a computing task, it add the result to the velocity of source node.
But the code did not run well, in some case, it simply run in a mass after some iterations.
Is there anything I missed in the algorithm?
Beta Was this translation helpful? Give feedback.
All reactions