Sunday, 15 January 2012

ios - Is it the "weight" or height and width that matters -



ios - Is it the "weight" or height and width that matters -

i'm developing game lots of graphics ios platform. none of graphics dynamic, they're ready made images. there 6 layers on screen , each layer contains 3-4 graphics objects in average scroll left, each different speeds. each screen refresh 20-25 objects scrolled, removed screen , added 1 time again right. game universal images of sizes nowadays in resources folder.on ipads, iphone 5, iphone 5s goes smooth. on 4th gen ipod touch notice hiccup. when test app instruments, notice critic memory problem @ start , problem goes away. because load above graphics on application start. images combined 4 different sprite sheets. here's question: weight in kilobytes matters or dimensions? i'm asking because reduced size of images 70-80 percents, though height , width remain same, memory problem still exists.

if reducing size of images utilizing compression, expect there delay , memory nail images uncompressed when first loaded, , take much memory did before compression.

the 4th generation ipod touch having memory pressures , seek release memory elsewhere in order allow images load , remain in memory. may hiccup see, other apps, mobile safari or mail service asked give memory or terminate.

(the size images take in resources folder inconsequential. size take when uncompressed , in memory matters).

you create images smaller making them 4bit instead of 8bit color, or create them monochrome. can utilize non-retina size or smaller, , allow os stretch them out fit space required. seek utilize best images first, , if memory warning (didreceivememorywarning), reload images less dense.

ios memory image-size

No comments:

Post a Comment