GT New Horizons

GT New Horizons

867k Downloads

Massive lags when changing world

Pxx500 opened this issue ยท 3 comments

commented

Your GTNH Discord Username

Pxx500

Your Pack Version

2.7.1

Your Server

Private Server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Expectation

Not having massive lags for 10sec whenever teleporting (be it interdimensional or not)

The Reality

Teleporting to another location (for exaple overworld -> pdim) causes massive lags.
During teleportation RAM caps to 8GB twice, after increasing max RAM to 16GB the issue is less severe but still noticeable.
While 16GB is allocated the game can still jump from 3,5GB to 16GB and force a GC (though sometimes it just doesn't), meaning the game uses massive amounts of RAM while loading the world.
The teleportation from OW base (which has many machines) can be less laggy then teleportation to pretty much empty pdim at times

Using normal Java GC seems to perform better than ZGC while teleporting but is unplayable for me due to lags on normal GC.
ZGenerational seems to perform better than ZGC but is still very laggy while teleporting.

The issue does not seem to be affected by angelica much but I think my findings about this might be inconclusive
I tried to profile the game during teleportation with YourKit, here is the collected data:

Allocation:
Allocation-telemetry.csv

Threads:
Allocation-telemetry-threads.csv

Flame Graph:
Allocation-flame-graph

Your Proposal

Investigate and fix

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
  • I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
commented
commented

NEI`s TooltipFilter & CollapsibleGroup are taking up some awfully big spots on that flame graph.

This is probably related to #18565. Seems like NEI has some pretty major performance issues atm.