optimize of3dGraphics