I’m finishing my first app, but I have a problem!
I have a lot of images to load (50 PNGs:: more than 30MO), I load them in the app’s launching (splash screen), the problem is that it takes more than 30 seconds to load those images!!!
I road in many articles that PNGs are the fastest images to load, but 30 seconds WOW, I tried JPG but generally it is the same average of loading time!
Yes, absolutely get TexturePacker and switch to using a Spritesheet. PNG files and export to the .pvr.ccz format. It is an easy switch. My game went from 40mb of art to 5mb. Not to mention the other performance benefits.
Thanks,
But I’m using background images, so I don’t understand how to use Spritesheet?
Even this, I tried to use this format, but I met problems when call with cocos2d-x, perhaps I mess some steps in the conversion or perhaps there is some tips with cocos2d-x to use this format??
@Lion_Ts - Those links are really out of date. Some of the concepts still apply though. For example as of v3 it is no longer recommended to use SpriteBatchNode.
@slackmoehrle - I’m using pvr.ccz format and it seems fixing my problems (both loading time and the size of the size of the app), but I have one more question:
For iPad and iPadHD, what is the best strategy: using specific images for iPad and others for iPadHD or using images for iPadHD and scale them for iPad to minimize ressources? But I’m not sure at what point the scale function is gourmand in resources??
Having specific images lower the amount of RAM required on lower devices and speed up the loadings times of the images, but make your app larger.
Having the same images will make your app smaller, but will take more RAM (which have a lot of implications: some lower-end/older devices may reach the limit, which causes cocos2d-x to unload unused textures, which causes a performance hit, especially since these will probably need to be reloaded later) and longer loading times (probably around x4 if you have a x2 scale).
All in all, you generally want to have specific images, since the size of the app is generally not that relevant.
P.S. : there is no scale function. The scale is applied by OpenGL when drawing the textures. There is basically no overhead for that, as far as I know.
I’m meaning to try shoebox, got adobe air ready but it runs like molasses at work. what are the limitations of free version texture packer? read that free was only available for one year, other limitations and you’d need to blog or do something like that…
PVR.ccz is only for power vr graphics right? i presume you detect graphics at boot and would have different formats for different hardware? yet you only Menton PVR.ccz…