Last week, I was writing a very basic endless runner with the SDL bindings for Go.
Texture, surfaces, fonts, windows (and a few more) are all resources that you will need to free. If you procedurally generate some of those, chances are you’re going to want to defer
freeing those resources, and some of this will most likely happen in a loop.