Why does GeometryPool create copies of Geometry Model? #2838
-
|
Hello all, I have been messing around with GeometryPools and can not understand why does it need to create copies of the underlaying geometry model. Why wouldn't one be enough? Isn't GeometryModel read-only, while the data stored/changes resides on the GeometryData (which in fact there is the need to have multiple copies for thread safety)? pinocchio/include/pinocchio/multibody/pool/geometry.hpp Lines 42 to 61 in 0918854 As always, your library is great and thank you for your precious time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
We copy the model so that each thread has one tuple (Model, Data). This is the best for efficiency reasons in CPU multithreading applications. |
Beta Was this translation helpful? Give feedback.
We copy the model so that each thread has one tuple (Model, Data). This is the best for efficiency reasons in CPU multithreading applications.