switched rendering and updating threads