Which is faster?

Blitz3D Forums/Blitz3D Beginners Area/Which is faster?

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.

Which is faster?

mx=MouseX() Mod 5
my=MouseY() Mod 5
DrawImage CursorImage,MouseX()-mx,MouseY()-my


or

DrawImage CursorImage,MouseX()-(MouseX() Mod 5),MouseY()-(MouseY() Mod 5)


I would have thought it was the second one, but I can't tell the difference when I run my app, so I thought I'd ask.

(The idea, obviously, is to force the mouse cursor image to snap to a grid. Is there an even faster way to do it?)

Thanks in advance for any helpful replies! :)