Indie - that's interesting. First time I've seen a decent speed up approximation that works faster (than Sqr) for modern hardware. Is there a 3d version?
Problem with it is that it doesn't work for negative values, so you sometimes have to use this version:
distance# = (Abs(dx#) * 0.41) + (Abs(dy#) * 0.941246)
..which is not as fast.
Problem with it is that it doesn't work for negative values, so you sometimes have to use this version:
distance# = (Abs(dx#) * 0.41) + (Abs(dy#) * 0.941246)
..which is not as fast.