Projects > cpp > Issues > Refactor #2516

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

To use Hybrid (retain/release with SmartPtr) in cocos2d-x v3.0

Refactor #2516 [Rejected]
ricardo 2013-08-09 23:03 . Updated over 10 years ago

The current retain/release/autorelease model has many issues as described here

Also, as described in that thread, the proposed alternative for v3.0 is to migrate to a hybrid approach:

  • Internally cocos2d will keep using retain/release without autorelease
  • But all the factory functions ( createXXX and clone ) should return an SmartPtr. The SmartPtr will replace the autorelease.

Since this task is huge, subtasks will be added.

ricardo 2013-08-09 23:03
  • Project changed from cocos2d-x to cpp
  • Priority changed from Normal to High
ricardo 2013-08-09 23:04
  • Target version set to 3.0-alpha0
ricardo 2013-08-13 04:00
  • Status changed from New to Rejected

Hybrid approach won’t be used

Atom PDF

Start date:2013-08-09
Due date:
% Done:


Target version:3.0-alpha0