Talha Hanif
Talha Hanif

Reputation: 23

How to deal with high resolution devices while porting for android?

I recently developed a car parking game using Unity 2018, and I was facing a lot of stutters on my Note 4. Later I turned down the device resolution to 1080p from 1440, and the stuttering was gone. I would like to know how can I detect if a device resolution is above 1080p and downscale it or if there is another better way of handling it, please let me know.

Upvotes: 2

Views: 28

Answers (1)

Foggzie
Foggzie

Reputation: 9821

You can use Screen.SetResolution to set a specific value (do it in Awake() on some script in your first scene) and then make sure you adjust the Blit Type in Player Settings to Always or you'll run into this problem.

Upvotes: 2

Related Questions