Non-retina support

I created an app, and I specified everything to fit 640x960 (all image sizes, locations etc.). Now I am wondering if it is going to work with non retina devices ( 320x480). If not, what do I need to do to make it fit. [import]uid: 104376 topic_id: 22190 reply_id: 322190[/import]

I don’t know about how it affects performance, or if it does at all, but thats the same size graphics I have in my game and it works on older devices. [import]uid: 59140 topic_id: 22190 reply_id: 88230[/import]

okay, good. I asked that because I downloaded a sample app, and it was made with 320x480 settings. it it also had a larger copy of each file and it was named @2x. Also in config.lua it said something about @2x, But I am not sure. Did you have a file that specified the size of the app? [import]uid: 104376 topic_id: 22190 reply_id: 88234[/import]

I’m not sure what you mean by “Did you have a file that specified the size of the app?” If you mean size of the images then no, not really. I just used the bigger graphics as the main file, corona seems to size them down good enough for me because it doesn’t cut anything off and it looks pretty good. The proper way to do different sizes is by naming the bigger file @2x because the compiler reads it as the bigger size and you’ll have to do that (or possibly @3x but I’m not completely sure about that) if you make it for iPad as well. [import]uid: 59140 topic_id: 22190 reply_id: 88235[/import]

and do you have to specify somewhere that @2x means bigger file?

and by that question I meant did you specify the default size of the screen (640x960) that you built it for? I think its supposed to be a file that is name config.lua or build.settings. I am not sure [import]uid: 104376 topic_id: 22190 reply_id: 88237[/import]

this should be helpfull: http://developer.anscamobile.com/content/configuring-projects#Dynamic_Content_Scaling
as for scaling down images, if your app isn’t too heavy on memory, it should work flawlessly (my game just do that) [import]uid: 44010 topic_id: 22190 reply_id: 88377[/import]

Yes on the larger files you add @2x at the end like this “redcircle @2x.png

and this is what my config.lua looks like

application =  
{  
content =  
{  
fps = 60,  
width = 320,  
height = 480,  
scale = "zoomEven"  
}  
}  

I’m not totally sure what “zoomEven” is but maybe someone else can chime in on that. The FPS is frames per-second. I set mine at 60 and I haven’t noticed any performance issues but you mileage may vary :slight_smile:

Don’t forget to check out the instruments application in your Developer File that you downloaded from Apple. With your iPod attached click “Energy Diagnostics” then “All Processes” and select your app. Run your app on your iPod and play around with it and see what figures you come up with under “CPU activity”. If you’re hitting 100% that’s not good, your app will be really slow. Anything at 50% or below is good, just think less is better. Let me know if you need any help interpreting any numbers, I’d be glad to help. [import]uid: 59140 topic_id: 22190 reply_id: 88554[/import]

Instead of “zoom even” you could use " letterbox"

And thanks for the advice I got it all figured out now. [import]uid: 104376 topic_id: 22190 reply_id: 88600[/import]