Added threaded rendering

There is some temp code that probably needs to go in a postrender()
function