Use multiple threads for rendering

Based on JayWalker512 a.k.a. Brandon Foltz's pull request:
https://github.com/TOGoS/TMCMR/pull/31

Also fix some whitespace
1 file changed