I’m not sure whats the best approach to this. There’s so many ‘Knobs’ that I dont know which should I be using to make a “battery life saver mode” in my game that the user may choose to set.
I also want to throw my hat in the ring to get some info on this.
From what I understand the Render Scale for Scriptable Render Pipeline Settings will only affect your cameras, meaning your UI will stay crisp.
Target DPI / Resolution Scaling Fixed DPI Factor seem to affect the entire final image however I can’t work out the difference between these two. According to the documentation, the maths here is…
min(Target DPI * Factor / Screen DPI, 1)
…so not sure why you would choose to lower one over the other.
Currently, I’m finding on my android device (Samsung S20, native 2322 x 1080, 120hz, 480dpi) the best option for pure performance is Target DPI / Resolution Scaling Fixed DPI Factor (I dropped my dpi to 240, it was ‘acceptable’ but you lose UI quality, looks a bit muddy). Render Scale gave me some frames back but not as much, however, the UI remained crisp.
This makes sense since using the DPI settings is probably asking less to be rendered by the device. Render Scale is rendering the camera image at a lower resolution but ultimately the game is probably still asking the device to render the final image at the native resolution.
Hopefully someone can give a clearer breakdown, this is just me having a play around for a few hours so don’t take it as gospel. Hopefully I’m not spreading miss information!
Would also recommend Graphy on the asset store for monitoring framerate on device, it also gives you device information and the resolution being rendered out.
Resolution Scaling Fixed DPI Factor is a percentage of the Target DPI value.
For example, i have my Target DPI set to 400 and allow my players to use the full 400 or lower by setting the Resolution Scaling Fixed DPI Factor to lower than 1.
I found that 300dpi is a sweat spot to keep UI crisp to most eyes. It’s a nice perf upgrade from any high dpi screen and won’t do anything on lower ones.
However I also found that 21:9 high dpi screen (> 400) have an issue with render scale (Xperia Z). It seems to use height (1080) to scale down and it scales very much down to a point where it’s very ugly. Not sure how to mitigate this.
I tested it on my side and target DPI gave me bad results compared to render scale.
For the context of my test, I tested on an S23. Its native resolution is 2340x1080 (DPI 450). I ran the test on Unity 6000.0.65f1.
The first screen is the native result, the second is a test with target DPI set to 360 (1872x864, blit mode auto and always gave me the same result), the third is the native result (450 DPI) with render scale set to 0.833 (1949x899) and point filtering.
I prefer to use render scale because it allows you to keep control over the upscaling method, and it doesn’t affect canvas overlay UI. It’s probably a bit more expensive but you can manage the quality without degrading the whole image.
Also, setting blit method to Always doesn’t allow you to override the shader.
So indeed target DPI is the fastest method, but using render scale you can apply this effect only on 3D and screen space camera elements and obtain better quality for your game.