JSScheduleWrapper导致内存一直增长!
复现步骤:
1.使用 cocos2d-x-3.17.2 创建js游戏
2.在 app.js 中添加如下代码
var HelloWorld = cc.Layer.extend({ ctor: function () { this._super(); this.scheduleUpdate(); }, update: function () { cc.log(“update called”); } });
3.在Xcode10.2.1上编译运行在iPhone 6s
4.Xcode、instruments查看内存一直在增长