Some extra 3d rendering optimizations.