Game Development Reference
also save JPEG files without compression, the same image in PNG format is
typically smaller than an uncompressed JPEG file. This affects only the app
size, not the memory (RAM) usage of the textures. Another reason not to use
JPEG files is that they're particularly slow to load with cocos2d on iOS
devices—about a factor of 8 times slower than PNGs, the last time I measured.
In Chapter 6 you'll also learn about TexturePacker, a tool that manages images
for you. It allows you to convert images into various compressed formats or re-
duce the color depth while retaining the best possible image quality through
dithering and other techniques.
Figure 4-6 . You'll see this dialog whenever you add resource files. In most cases you should use these default set-