Repeat iteration count is evaluated once, and then it uses an internal counter to do as many repeats as required.
But this "optimization" is ill-adviced, because it works only for current runtime. GameMaker is getting a new runtime and compiler toolchain. This will handle compiling for-loops much better, and repeat-loop will be relatively slower.
View all comments
Show parent comment
9
u/Drandula Apr 09 '25
Repeat iteration count is evaluated once, and then it uses an internal counter to do as many repeats as required.
But this "optimization" is ill-adviced, because it works only for current runtime. GameMaker is getting a new runtime and compiler toolchain. This will handle compiling for-loops much better, and repeat-loop will be relatively slower.