Testing Speed...

BlitzMax Forums/BlitzMax Beginners Area/Testing Speed...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How many times are you expecting to call them?
Basically, in this case, it doesn't matter unless your doing millions of calls.
If you're desperate to save time try this :
d=Sqr((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))
Quicker but more readable?
<edit> and still only saves over millions of repetitions.