Help with tick causing lag on chunk generation

Started by KingBugz on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with tick causing lag on chunk generation

I have noticed that my mod has ALOT of lag primarily on loading chunks.

With a bit of investigating I have seen this lag is caused by ticks. Ticks can take up to 70%+ of minecraft's processes when a new tick is being generated, and once the chunk is generated the tick percentage begins to dramatically drop.

I am not sure what is causing this.

That is what I need help with, just some more insight and examples to better understand what exactly is going on here.

If you use many procedures…
Sun, 11/08/2020 - 10:47

If you use many procedures with ticks, reduce this, tick procedures lag MC a lot so avoid them when not really 100% needed.

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does a block with tick…
Sun, 11/08/2020 - 20:45

does a block with tick procedure have to be placed for them to have an impact on performance?

My confusion is that I don't have any naturally spawning blocks with tick events other than some fruits that spawn on trees.

But these have never caused an issue before.

Last seen on 05:06, 6. Jul 2023
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is embarrassing. Whilst…
Mon, 11/09/2020 - 05:39

This is embarrassing.

Whilst testing one of my mod's structures I had set it the spawn rate to 1 million to guarantee that I could find the structure and properly test it.

I FORGOT TO SET THAT SPAWN RATE BACK DOWN!

I turned it down and my mod now runs smooth as butter on a hot summer sidewalk.