The main loop process aims to be the most optimized part of the engine. Every of the following steps are eventually called tens of time per seconds.

It can be described as follow:

  1. The position of the camera in the world is updated.
  2. The screen is renderered (see renderer)
  3. The SDL events are handled