cc.SpriteBatchNode.create(res.allui_png),进行统一渲染,就不会过渡的占用帧率。后面的res.allui_png,是一张经常被用到的大图片。
this.Node = cc.SpriteBatchNode.create(res.allui_png); this.addChild(this.Node,1); 每次创建的精灵只要是这个图片中的就可以直接添加到this.Node中。
本文共 258 字,大约阅读时间需要 1 分钟。
cc.SpriteBatchNode.create(res.allui_png),进行统一渲染,就不会过渡的占用帧率。后面的res.allui_png,是一张经常被用到的大图片。
this.Node = cc.SpriteBatchNode.create(res.allui_png); this.addChild(this.Node,1); 每次创建的精灵只要是这个图片中的就可以直接添加到this.Node中。
转载于:https://www.cnblogs.com/charBao/p/5213017.html