Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

How will Cocos2d-x v3.10 affect the use of retain/release?

$
0
0

@efares wrote:

In the announcement email about the next release of Cocos2d-x v3.10 it had this description:

This release brings bug fixes and API maintenance, as well as, removing the manual retain() / release() memory model from JavaScript. This will be a compile time feature which will be disabled by default, existing users who love the benefit of retain() / release() could keep using it. New users coming from JavaScript might prefer to turn it on.

What does this mean for the usage of retain/release? I am using JavaScript in Cocos v3.7 and I'm about half way through developing my game. Should I use retain/release on my sprites and objects where needed or should I update to v3.10 when it comes out and not worry about retain/release? Does this mean v3.10 automatically handles and applies retain/release on new Sprites/Objects ?

Thanks in advance.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles