Summary

The game loop is mainly a logical approach for game development. In many cases, developers do not opt for such a mechanism. Some games may be typically interactive and have no algorithm that runs continuously. In such cases, the game loop may not be needed. Game states can be updated as per input given to the gaming system.

However, an exception cannot be an example. That is why it is an industrial approach to follow a game loop to maintain a development standard irrespective of game design.

You learned about the game loop and game state management here. Developers are free to invent and execute game loops in different ways. There are many game engines that have different ways to control game loop and manage game states. The idea and concept of game loop and state management may change as per the game requirement.

However, developers should always keep in mind that the technique they are using should not affect the game performance and FPS. Besides that, developers need to maintain the readability and flexibility of code. Some approaches may consume more memory and run faster and vice versa. Android has various sets of hardware configuration, so there might not be the same processing and memory support on all hardware. Finally, balancing between memory and performance is the key to creating better games.

We will have a deep look at performance and memory management in later chapters. We will try to look at these segments of game development from different perspectives, such as 2D/3D games, VR games, optimization techniques, and more.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.4.174