I want to know more SpriteBatchNode

CCSpriteFrameCache::sharedSpriteFrameCache()>addSpriteFramesWithFile;
CCSprite * sprite1 = CCSprite::createWithSpriteFrameName;
CCSprite * sprite2 = CCSprite::createWithSpriteFrameName;
this
>addChild(sprite1);
this~~>addChild;
and
CCTexture2D *tex = CCTextureCache::sharedTextureCache~~>addImage;
CCSpriteFrameCache::sharedSpriteFrameCache~~>addSpriteFramesWithFile;
CCSpriteBatchNode * batchNode = CCSpriteBatchNode::createWithTexture;
CCSprite * sprite1 = CCSprite::createWithSpriteFrameName;
CCSprite * sprite2 = CCSprite::createWithSpriteFrameName;
this~~>addChild;
batchNode~~>addChild;
batchNode~~>addChild(sprite2);

SpriteBatchNode not use and use
however two code is same result.

I would like to know the difference between.

ps. Please understand, even if English is not very good.

Hi Jin,
Your first example does not use SpriteBatchNode and so performance will be worse than your second example even though the results are the same.
In your second example I think you do not need the first line… Look at the code for addSpriteFramesWithFile…
Hope this helps and your English is much better than my Mandarin/Korean/Japanese

thank you to your reply.

You are my hope was.

i hope after you help me at future again… ^^;

ps. Please understand this usage is illogical
i used google translation…

Craig Mitchell wrote:

Hi Jin,
Your first example does not use SpriteBatchNode and so performance will be worse than your second example even though the results are the same.
In your second example I think you do not need the first line… Look at the code for addSpriteFramesWithFile…
Hope this helps and your English is much better than my Mandarin/Korean/Japanese