Chapter 6. Making Our Game More Efficient
We have discussed quite a few debugging techniques, and there are a lot of them. Not all of them, however, help us when it comes to efficiency. What do we mean by efficiency? Your app can run great, but that doesn't mean it's going to cause the device to run great. Overheating, extreme battery drain, and other such things can ruin the gameplay experience.
With that in mind, let's get an idea of what we will cover in this chapter:
- Optimizing our game
- Preventing extreme battery drain
- Preventing lag (or at least minimizing it)
This is a critical step in your game development, as you don't want people to complain and delete your app because it's too laggy (or causes the app to stutter because the device is having issues rendering the current scene) or it kills the battery.
I know you may have never experienced such an issue, but it happens more often than not.
What would happen if you had downloaded a game that was extremely...