Pixel density ratio

Right now it is impossible to scale the content in your game to the device’s pixel scale. This is a problem specifically on mobile devices with high DPI screens. When loading an image for pc I want it to be the minimum sharp size, which is typically just the resolution of the ui element. When loading an image on mobile, I want the image to be twice the resolution of the ui element because I assume the player is on a high dpi device. When this is not true, I am just wasting data that impacts both load time and memory usage.

The ideal workflow is this: Check user pixel scale → Match to the smallest image variant that would be sharp at that resolution → Load that image.

7 Likes