-
efaresLikes 0Problem Description
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.
-
Sonar Systems adminLikes 0
I would say complete your game using 3.7 and use the latest version for future projects. Yes just release what you need to.
-
efaresLikes 0
Cool thanks for the tip :) I’ll keep using v3.7
-
Sonar Systems adminLikes 0
:D
Login to reply