Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.15.1 node.scheduleUpdate with override update method cause memory increase and can't release #18437

Open
liuyi opened this issue Nov 2, 2017 · 0 comments

Comments

@liuyi
Copy link

liuyi commented Nov 2, 2017

  • cocos2d-x version:3.15.1
  • devices test on:ipad
  • developing environments
    • NDK version:
    • Xcode version: xcode 9
    • VS version:
    • browser type and version: native app

Steps to Reproduce:

3.15.1 JSB环境 IOS IPAD3 真机测试

测试代码:

var MySprite= cc.Sprite.extend({
ctor:function(){

var _self=this;
_self.scheduleUpdate();
},

//如果不覆盖这个方法,内存不会增长,我记得我使用3.10的时候就发现这个问题
//memory increase always utils crash ,when override this method, just like below.
update:function(deltaTime){

this._super(deltaTime);
}
});

for(var i=1;i<10;i++){

var sp=new MySprite();
cc.director.getRunningScene().addChild(sp);
}

@liuyi liuyi changed the title node.scheduleUpdate and empty update method cause memory increase to memory warning. 3.15.1node.scheduleUpdate and empty update method cause memory increase to memory warning. Nov 2, 2017
@liuyi liuyi changed the title 3.15.1node.scheduleUpdate and empty update method cause memory increase to memory warning. 3.15.1 node.scheduleUpdate with override update method cause memory increase and can't release Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant