- Home /
Change iOS device resolution at runtime or app boot up?
I tried setting the parameter to 'auto (best perofrmance)' but unfortunately Unity insists on making the game 'retina' resolution on iPhone 4/iPod Touch 4th gen when this puts the framerate to what I believe is too low for 'best performance'.
If I force the resolution to 320p the framerate is much more stable.
Is there a way to simply force the game to run in 320p when it detects it's running on iPhone 4/iPod Touch 4th gen?
Answer by ricardo_arango · Apr 21, 2013 at 03:59 AM
You can use Screen.SetResolution:
http://docs.unity3d.com/Documentation/ScriptReference/Screen.SetResolution.html
To detect the device model you can use the iPhone.generation property:
http://docs.unity3d.com/Documentation/ScriptReference/iPhone-generation.html
Your answer
Follow this Question
Related Questions
iOS Target Resolution doesn't seem to affect resolution 0 Answers
Unity Screen.SetResolution gives me black screen on iPhone 4S 1 Answer
How do you account for iPhoneSettings.generation not working in the Editor? 2 Answers
iPhone Resolution Screen Switch 0 Answers
Dynamically choosing a high resolution texture at runtime on iOS devices 1 Answer