Deleted windowTypes. Added multithreading rendering. Various improvements