why game is running slow in libgdx?

前端 未结 8 1097
萌比男神i
萌比男神i 2020-12-09 06:50

I am making racing game in Libgdx.My game apk size is 9.92 mb and I am using four texture packer of total size is 9.92 Mb. My game is running on desktop but its run on andro

8条回答
  •  再見小時候
    2020-12-09 07:34

    One very important thing in LibGDX is that you should make sure that sometimes loading assets from the memory cannot go in the render() method. Make sure that you are loading the assets in the right times and they are not coming in the render method.

    Another very important thing is that try to calculate your math and make it independent of the render in the sense that your next frame should not wait for calculations to happen...!

    These are the major 2 things i encountered when I was making the Snake game Tutorial.
    Thanks,
    Abhijeet.

提交回复
热议问题