Slow App with Background image

后端 未结 7 1231
情话喂你
情话喂你 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:51

    its pretty late but if someone else have the same problem ; on the draw it may try to resize again, you can use no-dpi (drawable-nodpi / drawable-sw600dp-nodpi) folder to skip resizing which requires so much cpu and time.

    also something else may cause this , which i assume you forget to recycle old your bitmaps.

提交回复
热议问题