Does "if" help with procedures triggered globally?

Started by Toma400 on

Topic category: Help with modding (Java Edition)

Does "if" help with procedures triggered globally?

Topic title basically explains the question. I found myself running some global triggers, but I know that they are main source of lag and decreased performance due to being run constantly. Not that I need to know that *immediately*, but for longer run it can be really helpful.

So the question I have is: does "if" reduces the lag, so global trigger is used in less-heavy way? (you don't run procedure blocks until it's true)
And is there any other way to reduce global trigger heaviness?

Yes, adding conditions will…
Fri, 07/09/2021 - 05:39

Yes, adding conditions will help with reducing your world's lag if they reduce the amount of procedure blocks executed normally.