Set up basic update and rendering loop.