Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive lags when changing world #18572

Closed
2 of 3 tasks
Pxx500 opened this issue Dec 29, 2024 · 3 comments · Fixed by GTNewHorizons/NotEnoughItems#583
Closed
2 of 3 tasks

Massive lags when changing world #18572

Pxx500 opened this issue Dec 29, 2024 · 3 comments · Fixed by GTNewHorizons/NotEnoughItems#583
Labels
Bug: Minor Status: Triage Issue awaiting triage. Remove once this issue is processed

Comments

@Pxx500
Copy link
Member

Pxx500 commented Dec 29, 2024

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.
@Pxx500 Pxx500 added Bug: Minor Status: Triage Issue awaiting triage. Remove once this issue is processed labels Dec 29, 2024
@Pxx500
Copy link
Member Author

Pxx500 commented Dec 29, 2024

@Lyfts
Copy link
Member

Lyfts commented Dec 29, 2024

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.

@Pxx500
Copy link
Member Author

Pxx500 commented Dec 31, 2024

possibly fixed by GTNewHorizons/NotEnoughItems#583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Minor Status: Triage Issue awaiting triage. Remove once this issue is processed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants