First part of speed optimization for drawing
Second part of the drawing optimization, its looking good now. Some texture problems still