Avoid useless square root computations.
Fix get_distance_to_camera() that used a hardcoded quest size.
Compile very long files first.
Make camera functions inline since they are called very often.