Why not use shared_ptr in cocos2dx3?

I found the v3.0 still uses a customized reference counting mechanism. Why not use shared_ptr? Is there any problem when using shared_ptr?

1 Like

Came here looking for an answer to the same question. I believe the answer may be in this thread:

Reading through this and related threads I think it boiled down to CCRef being faster than std::shared_ptr. However, if CC is updated to support multi-threading then shared_ptr was said to be the preferred choice (sometime in the future). Already closed the tabs otherwise I would have added links, sorry.