Modulus on integer types should be pretty fast on modern CPUs, but not sure, does GameMaker use "double" or "float" for all numbers?