Tested triangleoverflow and reduces triangle buffer to sufficient size