your computer must be seriously bad if it performs better with B3D than with BM as BM uses optimations not available to B3D at all (especially in MingW 5.1.X in BM 1.26+)
Or you just forgot to disable debug build :)
still: not using sqr and staying on squared distance is a several magnitudes faster.
Or you just forgot to disable debug build :)
still: not using sqr and staying on squared distance is a several magnitudes faster.