3D related optimizations.