Optimizations in camera.