split the rendering into 4 threads