Does "if" help with procedures triggered globally?

Started by Toma400 on Thu, 07/08/2021 - 10:14

Topic category: Help with modding (Java Edition)

Last seen on 20:58, 22. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Does "if" help with procedures triggered globally?
Thu, 07/08/2021 - 10:14

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.

Last seen on 20:58, 22. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That's great to hear. Thank…
Fri, 07/09/2021 - 07:33

That's great to hear. Thank you, Matej ^^