I am making a small game for android. It is working smoothly when its working on a white background but when i want to put a background image, its becoming slower and slower. Fi
Background image Resolution to maintain smoothness
DPI | Size in Pixels |
---|---|
xxxhdpi | 1280x1920 |
xxhdpi | 960x1600 |
xhdpi | 640x960 |
hdpi | 480x800 |
mdpi | 320x480 |
ldpi | 240x320 |
You need to use background pictures matching the resolution as above to avoid lagging or being slow down.!
If you use high resolution images which exceeds the above restrictions would actually cause this issue and it's advisable to use only png