You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//如果不覆盖这个方法,内存不会增长,我记得我使用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);
}
The text was updated successfully, but these errors were encountered:
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
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
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);
}
The text was updated successfully, but these errors were encountered: