Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use @2x or -hd?

I am confused on the differences between using @2x or -hd Is one more efficient or quicker than the other? I am using Cocos2D.

like image 424
waylonion Avatar asked Dec 05 '25 04:12

waylonion


2 Answers

I'm pretty neither is quicker than the other

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

like image 93
EmilioPelaez Avatar answered Dec 07 '25 20:12

EmilioPelaez


@2x is used before CCDirector is loaded..so the @2x is a must for the loading screen and icons

if the CCDirector is already loaded (aka..you're in game) you can use either @2x or -hd but if i remember corectly -hd is slightly slower and you have to enable retina display in app delegate... remove comments of:

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

you don't need to enable retina display if you're using @2x

like image 38
skytz Avatar answered Dec 07 '25 19:12

skytz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!