How to require retina display?

I want to require the retina display (iPhone 4 and current gen iPod touch only) in my app. Does anyone know how to do that in the build settings?

Thanks!

-Mark [import]uid: 9189 topic_id: 3518 reply_id: 303518[/import]

Hi Mark,

That’s actually not something you can specify in build.settings. You can query the model/platform and display a “sorry” message for non-retina display devices.

http://developer.anscamobile.com/reference/index/systemgetinfo

Or if you’d like your app to support both types of displays/devices, Corona can automatically swap high-res images on Retina display devices for the low-res versions that users will see on other models.

http://developer.anscamobile.com/content/configuring-projects#Dynamic_Image_Resolution

Tim [import]uid: 8196 topic_id: 3518 reply_id: 10616[/import]

How to check whether the device we’re running support retina display or not? I think we could only get the device model, which is iPhone. But we wouldn’t know whether it support retina display or not, right? [import]uid: 5976 topic_id: 3518 reply_id: 13058[/import]

“Or if you’d like your app to support both types of displays/devices, Corona can automatically swap high-res images on Retina display devices for the low-res versions that users will see on other models.”

That’s all nice and good, but it doesn’t support spritesheets, so the auto high-res swap is pretty useless if you’re using the RECOMMENDED method of animation. Also from my test I’ve found that display.newImageRect is significantly more resource intensive than display.newImage, and I’m not talking about memory, but CPU. Would love to hear more on that.
So a way to determine if the device supports retina graphics would be more than welcome, so we could at least manually switch spritesheets.

Edit: Tim you say you can query the iphone device and send a sorry message if retina graphics are not supported, but this isn’t true at all. It returns “iPhone” even on my iphone 4 so once again, system.getInfo is completely useless at figuring out anything besides if it’s running on device or on the simulator. [import]uid: 10835 topic_id: 3518 reply_id: 13061[/import]