问题
When I switched from POT
to any size
in TexturePacker, per this question, Cocos2D starting throwing this warning:
cocos2d: WARNING. Current texture size=(1613,2047). Convert it to size=(1614,2047) in order to save memory
cocos2d: WARNING: File: units_black-hd.pvr.ccz
cocos2d: WARNING: For further info visit: http://www.cocos2d-iphone.org/forum/topic/31092
I cannot figure out how to explicitly set a texture size in TexturePacker so that it meets these constraints. POT
fixes it, of course, but it increases the size of each of my sprite sheets by ~1Mb, which I would prefer to avoid.
回答1:
The Force word aligned
option (hidden in the Advanced Settings of the Layout section) fixes this!
来源:https://stackoverflow.com/questions/25464398/custom-texture-dimensions-using-texturepacker-and-cocos2d