Remove allocations in camera update