Optimization is one of the most important tasks of any development cycle. It is inevitable, especially for games. Game optimization enhances performance significantly. Through optimization, more hardware platforms can be targeted.
You have already learned that Android supports a range of hardware platforms. Each platform has a separate configuration. By optimizing the use of hardware resources, a game can be run on more hardware platforms. This technique can be applied to visual quality as well. Not all devices have the same quality display, so optimizing the assets for low resolution saves a lot of storage space as well as heap memory during runtime.
In programming, the developer often writes intermediate code and forgets to optimize it later. This may cause a significant amount of performance loss or even cause the game to crash.
We will discuss the scope of various optimizations in Android game development through the following topics:
Fields...