Should I use @ 2x or -hd?

I am confused by the differences between using @ 2x or -hd. Is it more efficient or faster than the other? I am using Cocos2D.

+3
source share
3 answers

I'm pretty no faster than the other

In my case, since I like to use Cocos with UIKit, I use the -hd suffix for all Cocos-related images (textures, etc.) and @ 2x for the images to be used with UIKit.

+2
source

@2xused before loading CCDirector, and @2x- must for the loading screen and icons

CCDirector (.. ), @2x, -hd, , corectly -hd , app delegate... :

if (![director enableRetinDisplay:YES]) CCLOG(@"Retina Display Not supported");

, @2x

+1

Like another poster, I have never heard of the “-hd” suffix for image names in iOS.

Where did you see this? App names for retina or iPad devices sometimes have -hd as part of the name, but as far as I know, there is no formal meaning for the suffix “-hd” in iOS.

You must configure your program to use standard images. To support Retina devices, you must save 2 versions of each image, anImage.png and anImage@2x.png , where one with the suffix @ 2x has twice as much height and width.

-4
source

All Articles