Optimization problem

Hi everybody, 

I post a message, because i try to find a solution to a problem of optimization. 
I explain, i develop an app, with resolution of 1280*720 with scale = stretch. 
More precisely my config.lua is : 

application = { content = { width = 720, height = 1280, scale = "Stretch", fps = 40, } }

In the simulator, when i use a iPhone 5, the display is like that :  151280corona.png

but when i put my app on a iPhone 5, the display is not the same!! 

is like that :  759522105679103317330136524551932206920n

and with an iPhone 4, the display is packed, not at all adapted to the screen size

if someone can show me how i can work for try to find a solution, i will be grateful

Thanks

Hi @kevin.empociello,

There are a few things to note here:

  1. First and foremost, you probably did not include the required iPhone5 “Default-568h@2x.png” launch image. Please see this guide, under “Launch Images”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#launchimage

  1. “Stretch” is not a valid option for scale. The 3 options are “letterbox”, “zoomEven”, and “zoomStretch”. And, I really don’t recommend that you use the stretch option, since it will make your text/images look weird and, well, “stretched” on various devices. We offer this scale setting, but I actively promote that nobody uses it. :slight_smile:

Best regards,

Brent

Also, 40 is not a valid option for “fps”. Corona supports either 30 or 60 for this.

Ok brent, i change, and seems to work.
i have a thing that i don’t understand, in one of my page in my app, i have a background (720x4000) in a scroll view.
in a iPhone 5 the resolution is good 824177essai4.png

, but in a iPhone 4 very bad, i don’t understand why! 436806essai5.png

If you have a idea…

I think that the problem have a link with the scroll view with the image of 720x4000, because i have the same problem with an other app.
the thing that i can’t understand is why, a image of 720x1280 display correctly and the image 720x4000 it’s horrible

Are you still using “zoomStretch” or did you implement another scale option?

Brent

I’m using zoomStretch but with letterbox or zoomEven it’s the same problem, i found the exact problem, in a scroll View, (in iPhone 4, ipod, or tablet) if i use a background of 720x4000 the quality is bad, but if the background is 720x2000 the quality is good, so the problem is when i increase the height the quality decreases… it’s not normal…

Hi Kevin,

Are you using dynamic image selection via “display.newImageRect()” to load/render your images? Or simply “display.newImage()”?

Brent

i simply use display.newImage()

oh my god, with just “Rect” it’s work perfectly, thank you very much Brent!!!

Hi Kevin,

Good to hear. Just make sure that you have the dynamic images (of various sizes) available to load. If you’re not familiar with this topic, please read this guide for details (esp. under “Dynamic Image Selection”):

http://docs.coronalabs.com/guide/basics/configSettings/index.html

Hi @kevin.empociello,

There are a few things to note here:

  1. First and foremost, you probably did not include the required iPhone5 “Default-568h@2x.png” launch image. Please see this guide, under “Launch Images”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#launchimage

  1. “Stretch” is not a valid option for scale. The 3 options are “letterbox”, “zoomEven”, and “zoomStretch”. And, I really don’t recommend that you use the stretch option, since it will make your text/images look weird and, well, “stretched” on various devices. We offer this scale setting, but I actively promote that nobody uses it. :slight_smile:

Best regards,

Brent

Also, 40 is not a valid option for “fps”. Corona supports either 30 or 60 for this.

Ok brent, i change, and seems to work.
i have a thing that i don’t understand, in one of my page in my app, i have a background (720x4000) in a scroll view.
in a iPhone 5 the resolution is good 824177essai4.png

, but in a iPhone 4 very bad, i don’t understand why! 436806essai5.png

If you have a idea…

I think that the problem have a link with the scroll view with the image of 720x4000, because i have the same problem with an other app.
the thing that i can’t understand is why, a image of 720x1280 display correctly and the image 720x4000 it’s horrible

Are you still using “zoomStretch” or did you implement another scale option?

Brent

I’m using zoomStretch but with letterbox or zoomEven it’s the same problem, i found the exact problem, in a scroll View, (in iPhone 4, ipod, or tablet) if i use a background of 720x4000 the quality is bad, but if the background is 720x2000 the quality is good, so the problem is when i increase the height the quality decreases… it’s not normal…

Hi Kevin,

Are you using dynamic image selection via “display.newImageRect()” to load/render your images? Or simply “display.newImage()”?

Brent

i simply use display.newImage()

oh my god, with just “Rect” it’s work perfectly, thank you very much Brent!!!