Help with tick causing lag on chunk generation

Started by KingBugz on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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.

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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.

Active 2 years ago
Joined Sep 2018
Points:
851

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 79
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.