Performance improvements to graphics