for (let i = 0; i < 500; i++) {
let shape = new egret.Shape();
shape.graphics.beginFill(0xff0000)
shape.graphics.drawCircle(0, 0, 200);
shape.graphics.endFill();
this.stage.addChild(shape)
}
平均22帧
for (let i = 0; i < 1000; i++) {
let shape = new egret.Shape();
shape.graphics.beginFill(0xff0000)
shape.graphics.drawCircle(0, 0, 200);
shape.graphics.endFill();
this.stage.addChild(shape)
}
显示一下后退出
原文:https://www.cnblogs.com/honghong87/p/10533435.html