RenderThread

Finished the documentation, also questioning whether it makes sense to destroy the window when the thread is stopped.