Jump to content

Extreme Lag Spikes on High-end PC


Ryxas

Recommended Posts

So, I recently spent roughly 10 hours building a 66 village "Iron Titan" on my survival world. I'm currently running forge 1.12. I won't bother listing the mods I have installed because I backed them up, removed them and ran the game with no change in my massive lag spikes. My computer is more than beefy enough to handle playing with ultra settings using a shader pack and keep a consistent 100fps. So ultimately my question boils down to what in forge is creating these massive lag spikes. For reference when I say massive I mean every 5-10 seconds my game almost freezes for 2 seconds and then goes back to normal. I will note that I have tried reducing all visual specs to the lowest settings without change. The only thing that I've done to my world that I can think would affect forge like this is that I have a portal set to spit an item out every 8 seconds give or take. This should keep the spawn chunks in my memory so that my 66 villages don't merge together and ruin my work. I thought that the redstone in the spawn chunks was the culprit until I looked at my debug and found that only 8% of my resources was going to tick. I've tested this issue in vanilla and in forge without mods. Vanilla runs perfectly normal (second image), where as Forge is stuttering my game (first image). Please help.

1.jpg

2.jpg

Edited by Ryxas
Link to comment
Share on other sites

You have got WAY too much memory allocated. Sometimes allocating too much memory can cause issues too. 

 

Please try reducing it to a sensible amount (for instance 5gb) and see if is any better. 

 

Please also try it without optifine. 

Link to comment
Share on other sites

2 minutes ago, Cloudy said:

Please try reducing it to a sensible amount (for instance 5gb) and see if is any better. 

 

I have tried it at 1, 4 and 8 GB as well. None of which affected this problem.

 

3 minutes ago, Cloudy said:

Please also try it without optifine. 

 

As stated in the post I have tried removing all mods, including optifine, and just running forge empty. The problem persists.

Link to comment
Share on other sites

This is a known (and fixed...workarounds provided below) issue related to how dimensions are handled. Forge unloads dimensions right away if there are no players present and apparently these Iron Titan farms relies on sending items to the nether, which is what's causing the lag spikes as the dimension is loaded when the item is sent then instantly unloaded because there are no players present...rinse and repeat over and over and over and over....

 

Workaround ingame: Simply put a chunkloader on the other side of the portal which will keep the dimension loaded all the time. (this obviously requires a mod that adds a chunkloader)

 

Permanent workaround:

 

Edit config\forge.cfg and look for this:

 

Quote

    # The time in ticks the server will wait when a dimension was queued to unload. This can be useful when rapidly loading and unloading dimensions, like e.g. throwing items through a nether portal a few time per second.
    I:dimensionUnloadQueueDelay=0

 

Change the 0 to something longer than the interval the items are sent at, 1 second = 20 ticks so with a 10 second cycle you'd want at least 200.

 

 

Link to comment
Share on other sites

1 hour ago, Ravenleft said:

Edit config\forge.cfg and look for this:

 

Change the 0 to something longer than the interval the items are sent at, 1 second = 20 ticks so with a 10 second cycle you'd want at least 200.

 

You're my hero, it worked! Thank you so much.

Link to comment
Share on other sites

I'm still curious why the nether is even needed for this setup. The explanations I have heard is that it is a chunk loading mechanic for vanilla.... Because villages 'merge' if the chunks are unloaded.

But you're building it in spawn chunks which don't get unloaded. So i'm thinking this is unneeded even in vanilla. If anyone has documentation on the reasoning for this, i'd be interested in reading it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • @bluedisgusted That actually fully fixed it, thank you so much
    • Hi, I would like to know how to create multiple hitboxes for the player like the ender dragon. I've searched everywhere but I haven't found anything.
    • FOLKWIN EXPERT RECOVERY is the crypto hero we all need in the ongoing battle against cryptocurrency theft. With the rise in popularity of digital assets like Bitcoin and Ethereum, crypto crime has also been on the rise as hackers look to steal funds stored in virtual wallets. Many a crypto investor has fallen victim to clever scams and hacking schemes that drain wallets of their precious coins. But fear not, for FOLKWIN EXPERT RECOVERY has arrived as a beacon of hope for those who have had their hard-earned crypto stolen. This service is like a superhero for tracking down lost or stolen cryptocurrency, utilizing their advanced forensic technology and expertise to follow the blockchain paper trail and identify where your funds have gone. Their team of ethical hackers act like detectives, piecing together crypto transactions and unmasking the thieves behind complex cybercrimes. No case is too difficult for FOLKWIN EXPERT RECOVERY; they have recovered millions in stolen crypto assets from around the globe. Their mission is to reunite victims with their lost funds and bring criminals who prey on cryptocurrency investors to justice. With their help, those who have been robbed of their digital fortunes now have a crypto guardian to call upon in their time of need. FOLKWIN EXPERT RECOVERY gives victims the hope that all is not lost forever when crypto theft occurs.For support, Contact details is: TELEGRAM: @FOLKWIN_EXPERT_RECOVERY, EMAIL: FOLKWINEXPERTRECOVERY at TECH-CENTER dot COM, WEBSITE: WWW.FOLKWINEXPERTRECOVERY.COM .  are the heroes we need in the ongoing battle to make cryptocurrency ownership safe and secure for all. Get FOLKWIN EXPERT RECOVERY on your side when you have issues like this by dialing: Do this and thank me later. God Blessings to all, I'm forever grateful oh God for the successful recovery. I recommend FOLKWIN EXPERT RECOVERY the best ever and i'm so happy i got all my lost money back. Best Regards. Pamela K Ingram.
    • Made it work. As a note, one of the times it didn't recognize the recipe cause the MOD_ID constant I was using somewhere was NOT referencing my MOD_ID but rather another static variable with the same name. Maybe OP is having a similar problem
    • What exactly is the issue?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.