HMm... altough, you are right. See, when i modified the functions to this: I gained 4 FPS in preformance:
Here i only use the MOD function 1 time.
'SuperFloor Function SuperFloor:Int(val:Int, size:Int) Return val - Abs(val Mod size) End Function 'SuperCeil Function SuperCeil:Int(val:Int, size:Int) Return val + Abs(val Mod size) End Function
Here i only use the MOD function 1 time.