I want to run my game at half retina resolution on macbooks both for performance and battery reasons. I would prefer not to have a resolution selection at the start or in game.
As Unity offers Screen.SetResolution and Screen.dpi I was thinking this should be easy. If Screen.dpi>200 (highDPI screen) halve the resolution. For testing purpose I’m using 50 dpi.
{
Screen.SetResolution(Screen.currentResolution.width / 2, Screen.currentResolution.height / 2, true);
}```
Problem with my code seems to be that Unity remembers the resolution I set last and that dpi remains the same, no matter what resolution is set. This causes an infinite shrinking of my resolution on every restart. How do I clear the resolution setting? How do I get the actual screen resolution on start up with correct dpi?