Multithreaded Rendering implemented

Implemented a simple multithreading functionality