added multithreading control. seperating rasterizer into 3 tasks.