新建一个helloworld工程
将原来的代码
改为
文本为
auto sbn=SpriteBatchNode::create(“HelloWorld.png”);
for(int i=0;i<600;i++){
for(int j=0;j<100;j++){
auto sp=Sprite::createWithTexture(sbn->getTexture(), Rect(10,10,5,5));
sp->setPosition(i*6, j*6);
sbn->addChild(sp);
}
}
this->addChild(sbn);
在真机运行十分的卡顿

按我的理解,SpriteBatchNode不是只渲染一次么?
还是我的代码有问题,求赐教