Download

Disable Infinate Loop Detection?

just wondering if its possible to change the engine source to not stop infinate loops. im doing a calculation that finds all combinations of gear that could exist and im pretty sure the normal engine only calls it an infinate loop because i go over the max loop iterations, so im pretty sure that if i disabled infinate loops limiting i could actually complete the calculation.

just wondering if anyone knows if its possible or if they know what part of the code i would need to change to disable max iterations

thanks

Do you mean for Blueprints?
This is controlled by the Maximum Loop Iteration Count under project settings.

See Help with an infinite loop.

Regardless of that setting, you may want to consider breaking long loops up over time, doing them in another thread etc.