add rendering thread