Started by
KingBugz
on
Topic category: Help with Minecraft modding (Java Edition)
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 with ticks, reduce this, tick procedures lag MC a lot so avoid them when not really 100% needed.
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.
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.