In this tutorial, we improve the rendering system by double buffering. We set it up such that while one buffer is being printed to the screen, another is being rendered to. This saves time because it takes care of two long and unrelated tasks at the same time.
https://github.com/lunatic-programmer...