Game Development Reference
The final stage of the loop comes right after we finish updating our objects. Here, we clear
everything that has been drawn from the last time and render every object on the screen
Going back to the example of our game loop, it currently doesn't perform the things it's
supposed to and, if we try to run the code, it becomes obvious that the window doesn't re-
spond to inputs. This is because we don't perform the first of the three important steps in
the loop—handling the input.