Sprite sheet is a method of merging multiple sprites into a single file. This reduces the size of the entire file relative to placing each sprite in a separate folder. This means that you will greatly reduce memory usage, file size, and load time.
In addition, to achieve better performance through batching, we must use the sprite Sheet.
When using sprite sheet, first load it into SpriteFrameCache
. SpriteFrameCache
is a cache class that is saved SpriteFrame
so that we can access it quickly SpriteFrame
. SpriteFrame
is an object that contains the image name and a specific sprite size ( Rect
).
SpriteFrameCache
You can avoid multiple loads SpriteFrame
. SPriteFrame
load only once and be saved SpriteFrameCache
in.
In my understanding, is Spriteframecache is the software or the program itself, and Spriteframe class is that *.plist itself, is through the Spriteframecache to load/Save the sprite Frame.
Reference website: http://cn.cocos2d-x.org/tutorial/show?id=1989
The approximate understanding of Sprite sheet