Optimizations to the graphics renderer. Next bottleneck is the matrix inverse function