Divine Journey 2

Divine Journey 2

636k Downloads

Massive and often lag spikes

R3Ked opened this issue ยท 6 comments

commented

Modpack version:
2.9.1

Description:
After the game has been open for a while, the game starts experiencing large and frequent lag spikes. The only way to fix it is by completely restarting the game.

Steps to reproduce:

  1. Play the game for a while.

Expected behavior:
It doesn't lag.

Additional context:
I want to post my PC specs for additional info, but don't know how.

commented

#578 (comment)

What info do I need in particular?

commented

Default settings, I think gives you a 4GB maximum heap when DJ2 works best with 8GB. Go to your curseforge settings, and you have two options:

  1. Bump that maximum up to 8GB.
  2. Ignore it, and enabled the G1GC garbage collector by using these settings as additional arguments: -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=60 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M but whenever you open the Minecraft launcher from Curseforge, you have to go to the additional settings and remove the first three settings since they have priority and will turn off the G1GC garbage collector.

If that doesn't help, it does help to know just how much RAM you actually have.

commented

Havvy has a lot of helpful information there.

In addition to his comment, you have to consider the fact that any FTB modpack is making Minecraft do a ton of things and Minecraft is JAVA. There is a lot of garbage collection to be had and done and Java doesn't excel excel at that. At some point it WILL need rebooted.

I have a pretty powerful rig and I still have to reboot after ~6 hours no matter what settings I use. It's just the nature of the beast.

commented

What's your Minecraft launcher settings?

commented

Just open task manager and click performance and there your pc specs

commented

I'm running Minecraft through curseforge, using the default settings