Lastly I was writing a game and loading a bunch of big images. I had always memory leaks as I loaded the sprites using the Create method with image path from the sprite Class. Then I solved the problem creating the Sprite Objects and Attaching them to the scene only when strictly required. I discovered that even the creation of the CCSprite objects allocates memory even if not attaching the sprite to the scene. Then I converted my game and used Spritesheets and now I’m loading my sprites using “spriteWithSpriteFrameName”. I’m just wondering if the spriteWithSpriteFrameName allocates video memory as soon as called as the create method. Or the video memory is allocated only when i attach the object to the scene ? Works it as the create method of the CCSprite class ?
Cocos2d Does the spriteWithSpriteFrameName method allocate video memory?