cocos creator 1.9 刚体碰撞,发布到微信小游戏,真机,掉帧严重,画面出现卡顿,模拟器正常
for(let i = 0;i<this.ballNumber;i++){
var newBall = cc.instantiate(this.bodyPrefab);
// var ballCom = newBall.getComponent("Ball");
// newBall.addComponent(cc.RigidBody);
this.node.getChildByName("sence").addChild(newBall,i,1000+i);
// node.addChild(newBall,i,1000+i);
newBall.setPosition(cc.v2(-100 + 100 * (Math.random() -0.5) * 2,667));
}
this.bodyPrefab 是关联的预制文件,包含组件,

浏览器的帧率:

手机帧率:

当ballNumber,超过十个时候开始出现30fps,掉帧严重,作为初学者遇到这样问题真的很头疼,希望能够指导,万分感谢!