need help understand what design resolution is?

Hi this is not a problem, but i just want to know more about design resolution. i’ve read http://www.cocos2d-x.org/wiki/Detailed_explanation_of_Cocos2d-x_Multi-resolution_adaptation but still have some questions.

I dont know why we should use. For example, i has 2 resources 1024x768(for ipad) & 2048x1536(for retina), my device’s screen is 1280x720, then what design resolution i should set? ipad, ipad retina or my device?

As i understand, from resource resolution(RR) will scale to design resolution, then design resolution(DR) scale again to screen resolution(SR), but why do it just scale directly from resource resolution to screen resolution with resolution policy?? (in case RR = DS then scale factor = 1 => RR will be scale to SR).

I know design resolution must be served for some purposes, but right now i really confuse about using which resolution for design resolution. Pls check my code below:

`Size screenSize = glview->getFrameSize();
Size design = Size(768, 1024);
glview->setDesignResolutionSize(design.width, design.height, ResolutionPolicy::FIXED_HEIGHT);

if (screenSize.height > 1024)
{
	FileUtils::getInstance()->addSearchPath("retina");
	director->setContentScaleFactor(2048/design.height);
}
else
{
	FileUtils::getInstance()->addSearchPath("norm");
	director->setContentScaleFactor(1024/design.height);
}`

As the code, i set scalefactor depend on resource-screen because, resource-design is the same.

2 Likes