Multi-threaded rendering & add option to set max thread count