xcode - is it sufficient to supply 3x image only for all versions on iPhone? -
xcode - is it sufficient to supply 3x image only for all versions on iPhone? -
is not plenty supply 3x resolution image (e.g view or button) in xcode looks on iphone 5,6,and 6plus devices ( i.e leaving 1x , 2x in image set blank )
my reasoning 1x image may blurry on 6 plus 3x image should fine on 5
basically asking can communicate same graphic designer , should fine supplying singe size rather 3 sizes images
this got asked , answered many times regarding 2x assets, , reply hasn't changed (but it's hard track downwards duplicate questions when i'm posting phone).
if ship assets higher scale factor target device, display fine. downscaling them in real time has performance costs—they utilize more memory, take longer upload gpu, take gpu time render. of these costs trivial, others aren't. (remember, 2x image 4x info of 1x one, , 3x image 2.25x info of 2x one.) , add together every image in app.
most importantly, devices lower scale factors ones less cpu/gpu/memory resources spend on downscaling.
so, do? well, if don't want have artist deal multiple scale factors, order 3x artwork , scale in photoshop (or heck, preview) before ship. might not nice if artist tweaked each size, it'll real-time scaling without run-time performance costs.
or, xcode 6, can set pdf in asset catalog, , xcode automatically generate pngs each size @ build time. (this xcode feature, not ios one, works if you're targeting ios 7.)
iphone xcode user-interface iphone-5 iphone-6
Comments
Post a Comment