Instantiate a rendersession, and use it in the main loop