Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Extreme Lag Spikes on High-end PC
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Ryxas

Extreme Lag Spikes on High-end PC

By Ryxas, July 3, 2017 in Support & Bug Reports

  • Reply to this topic
  • Start new topic

Recommended Posts

Ryxas    0

Ryxas

Ryxas    0

  • Tree Puncher
  • Ryxas
  • Members
  • 0
  • 3 posts
Posted July 3, 2017 (edited)

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 July 3, 2017 by Ryxas
  • Quote

Share this post


Link to post
Share on other sites

Cloudy    14

Cloudy

Cloudy    14

  • Stone Miner
  • Cloudy
  • Members
  • 14
  • 98 posts
Posted July 3, 2017

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. 

  • Quote

Share this post


Link to post
Share on other sites

Ryxas    0

Ryxas

Ryxas    0

  • Tree Puncher
  • Ryxas
  • Members
  • 0
  • 3 posts
Posted July 3, 2017
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.

  • Quote

Share this post


Link to post
Share on other sites

Cloudy    14

Cloudy

Cloudy    14

  • Stone Miner
  • Cloudy
  • Members
  • 14
  • 98 posts
Posted July 3, 2017

If you could provide the fml-client-latest.log with just forge on a session you are experiencing this issue on, we will be able to look into this further. 

  • Quote

Share this post


Link to post
Share on other sites

LuciusV    0

LuciusV

LuciusV    0

  • Tree Puncher
  • LuciusV
  • Members
  • 0
  • 2 posts
Posted July 3, 2017

I confirm this, the same happens for me without any mod

  • Quote

Share this post


Link to post
Share on other sites

Ravenleft    8

Ravenleft

Ravenleft    8

  • Stone Miner
  • Ravenleft
  • Members
  • 8
  • 51 posts
Posted July 3, 2017

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.

 

 

  • Quote

Share this post


Link to post
Share on other sites

Ryxas    0

Ryxas

Ryxas    0

  • Tree Puncher
  • Ryxas
  • Members
  • 0
  • 3 posts
Posted July 3, 2017
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.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1616

LexManos

LexManos    1616

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1616
  • 8926 posts
Posted July 3, 2017

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.

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Use ${} in mods.toml

      By diesieben07 · Posted 5 minutes ago

      Correct.
    • diesieben07
      [1.16.*] Run Client/Server error

      By diesieben07 · Posted 6 minutes ago

      If you get that error you are using Java 15 still. However Forge has a recent update that should fix this.
    • diesieben07
      Party System

      By diesieben07 · Posted 6 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      [1.16.4] How i can open a container by clicking on my mob

      By diesieben07 · Posted 7 minutes ago

      Here you write the entity ID. Now you need to read it in your IContainerFactory.   That extraDataWriter stuff doesn't work and makes no sense.
    • Discult
      Party System

      By Discult · Posted 49 minutes ago

      Hello, I am looking for guidance on the best approach to creating a party system I already have the backbone and a system working with commands but I am looking to attach this to a ui(just finished making) so I am looking for advice on the best way to do this going forward, I assume packets will play a big part in the communication to so I can get access to EntityPlayerMP as I believe for the client its EntityClientPlayerMP, So I have a couple of functions that handle it all :  createParty(EntityPlayerMP player); joinParty(EntityPlayerMP player, int inviteIdentifier); inviteParty(EntityPlayerMP sender, EntityPlayerMP invitedPlayer);   Will I need to create different packets and messages for each of these ? if so my idea for the inviteParty is to send over the invitedPlayer uuid but how do I then receive the the player from the current Minecraft server?   Any information will be appreciated.   Regards, Discult
  • Topics

    • DoctorC
      7
      Use ${} in mods.toml

      By DoctorC
      Started 2 hours ago

    • Luis_ST
      1
      [1.16.*] Run Client/Server error

      By Luis_ST
      Started 1 hour ago

    • Discult
      1
      Party System

      By Discult
      Started 49 minutes ago

    • Klarks
      35
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Saturday at 09:56 PM

    • Luis_ST
      19
      [1.16.4] Edit Conversion Progress of Zombie Villager (Help with Java Reflection)

      By Luis_ST
      Started 5 hours ago

  • Who's Online (See full list)

    • Choonster
    • diesieben07
    • _HungTeen_
    • Klarks
    • Luis_ST
    • Thorius
    • Pl00py_R
    • Dragrise96
    • S-Spirit
    • loordgek
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Extreme Lag Spikes on High-end PC
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community