04-25-2015, 05:41 AM
(This post was last modified: 04-25-2015, 05:42 AM by LogicParrot.)
Quote:But why bother with a shared pointer? The vast majority of paths are not going to be shared so the memory overhead of the shared_ptr reference count is likely to use more memory overall than just copying the path when needed.A cPath instance will usually have dozens of Vector3d's, I think the overhead of copying it is not to be underestimated.