Relationship between performance and memory management
In Android game development, performance and memory optimization often conflict with each other. To maintain the visual quality of the game, better art assets are mandatory, which eventually increases memory overhead and performance lag.
Optimizing memory needs to do frequent memory operations, resulting in performance drop. To increase performance, objects have to be readily available for smooth processing. Clearly, both cannot be applied at their extreme levels.
Balancing between them is the only way out to optimize the full game to run smoothly without exhausting memory.