Game Engine Loop

Game Engine Loop Quick Jump / Table of Contents

  1. What is the Game Engine Loop?

Game engine loops are the fundamental force driving all interactive experiences. Generally, most game engines are based on state machines, a form of computing that allows for consistent and predictable behavior.

Game engine loops are the fundamental force driving all interactive experiences. Generally, most game engines are based on state machines, a form of computing that allows for consistent and predictable behavior.

A game engine loop's primary function is to process game information, from graphics, physics, and AI. This processing includes drawing a scene, selecting actions for player characters, moving game entities, and implementing user input events. In its simplest form a game loop runs as a loop. However, in some cases, there can also exist multiple game states, or loops, that run concurrently in an interconnected loop (called a thread).

These "game loop threads" are very powerful since they can operate simultaneously and concurrently and provide a much richer and more interesting experience. In many games, it makes sense to perform a game-state process as a series of sequential functions that are run every frame. This is done for efficiency purposes: it ensures simplicity by removing communication between computational threads and allows a more linear code-flow. However, the number of different states in the loop grows very quickly and becomes unwieldy as the scope of a game grows.

What is the Game Engine Loop?

Game Engine Loop: Input, Update, Draw

Leave a Reply

Your email address will not be published. Required fields are marked *