3 ms·
You could just create you assets in Illustrator/Vector and you would be set for any future resolution increases. However the PNGs would still increase your bund
by kenrikm 15y ago
You could just create you assets in Illustrator/Vector and you would be set for any future resolution increases. However the PNGs would still increase your bundle size.
What I'm curious about, maybe someone here has the answer is if there would be a significant performance gain from using Core Graphics over just loading a PNG?
- randomdata 15y ago> you would be set for any future resolution increases. Only if you're willing to release an update. There's something to be said about having it already ready for any future resolutions, now.
- cwbrandsma 15y agoOn the Apple developer web site you can watch the WWDC videos, there is one on graphics and animation that talks about just that. Conventional wisdom, especially for small images, it is much more efficient to draw them with Core Graphics than use a image, more so if there is transparency in the image. This will even be true for non-ios systems. Microsoft has said for years, that generating a 16x16 image is faster than getting it from disk (depending on complexity and disk speeds). Plus, code does tend to be more compact (again, within reason), so it is less that has to be loaded when your application starts.