Slow App with Background image

后端 未结 7 1297
情话喂你
情话喂你 2021-02-01 03:19

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

7条回答
  •  故里飘歌
    2021-02-01 03:56

    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

提交回复
热议问题