The square root is usually a very slow operation. Learn how to write a fast square root function based on the engine used for Quake III.