set number of rendering threads