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?

1 Answer

1

You can use Screen.SetResolution:

To detect the device model you can use the iPhone.generation property:

http://docs.unity3d.com/Documentation/ScriptReference/iPhone-generation.html

Does this now work on iOS?