Lag and crash with procedures

Started by BlueFeline on

Topic category: Help with MCreator software

Last seen on 10:25, 8. Aug 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lag and crash with procedures
Wed, 02/26/2020 - 16:19 (edited)

Hello,
I am creating a mod which includes many procedures. When I test my mod, I start to lag a lot and sometimes I crash. Someone know if this is due to the presence of many procedures; and if so, is it better to combine all the procedures into one or separate the large procedures into a multitude of small procedures? I can provide more details if necessary!

BlueFeline

Edited by BlueFeline on Wed, 02/26/2020 - 16:19
If you use many procedures…
Thu, 02/27/2020 - 13:08

If you use many procedures on tick updates this is normal and should not be done.

Last seen on 10:25, 8. Aug 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it better to bring them…
Thu, 02/27/2020 - 13:21

Is it better to bring them into one big procedure on tick updates ?

This will not solve it, you…
Fri, 02/28/2020 - 13:37

This will not solve it, you need to avoid doing any complex logic in tick event, this is how MC is designed.