The Twilight Forest

The Twilight Forest

155M Downloads

Sortingwood tree causes huge server-side lag

Flaming-skeleton-guitar opened this issue ยท 2 comments

commented

NeoForge Version

21.1.62 (Server)

Twilight Forest Version

4.7.3196

Client Log

No response

Crash Report (if applicable)

No response

Steps to Reproduce

  1. Place a large amount of chests within a 32x32 radius
  2. Plant a sortingwood tree at the center of these chests
  3. Activate the tree

What You Expected

The sortingwood tree should not cause performance issues

What Happened Instead

The sortingwood tree causes large amounts of server-side lag

Additional Details

This was discovered on the testing server

Please Read and Confirm The Following

  • I have confirmed this bug can be replicated without the use of Optifine.
  • I have confirmed the details provided in this report are concise as possible and does not contained vague information (ie. Versions are properly recorded, answers to questions are clear).
  • I have confirmed this issue is unique and has not been reported already.
commented

Just to add to this, I had the same issue and the bad performance was very noticeable. Turned on spark for 30 seconds and found out that this particular block was eating 18% of CPU. Once I got rid of the block the issue went away. In my case, I had no chests around it. Just the tree sitting there in the wild.

EDIT: Actually since the tree was near two of our bases it might have been detecting chests in our production farms with the sophisticated storage mod, which adds more stack sizes as upgrades.

Image

commented

There is probably a way to reduce the impact on performance, though it would need some research into it.

However, I will say this: of the two reports here, a consistent theme is "lots of chests" are around the Sorting Tree. Putting more storage containers around the Sorting Tree is guaranteed to cause lag as it's finding every storage container in the area. Having lots of chests around it is going to start slowing down performance if the CPU is not able to handle it.
Same would apply if there are hundreds or thousands of entities in a mob farm - there is a point that the game simply cannot handle the load.

The immediate best solution to this issue is to not place so many chests around the Sorting Tree, or reduce the effect radius of the Sorting Tree so fewer storage containers are in the area.