Added support for rendering on several threads (EXPERIMENTAL).