Minecraft is lagging for some reason

Discussion in 'Computer Games and General Discussion' started by smileyhead, Sep 13, 2016.

  1. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    It didn't do it until now. The sun is jumping back, blocks only break after a delay etc.
    I'm playing on a relatively good gaming laptop, and on average settings. I usually get around 200 fps.
    GIF
     


  2. Supster131

    Supster131 (づ。◕‿‿◕。)づ *:・゚✧

    Member
    3,187
    2,204
    Jan 19, 2016
    United States
    My Computer
    Hmm.. I may as well ask :P
    What things have you installed?
    Driver updates?

    Edit: GIF finally loaded. That looks more like server lag.
     
    Last edited by Supster131, Sep 13, 2016
  3. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Warning: Spoilers inside!
    What do you mean? Programs? Mods?
    I only lowered them to get more fps.
    I'm using the latest proprietary driver.
     
    Last edited by smileyhead, Sep 13, 2016
  4. AbyssalMonkey

    AbyssalMonkey GBAtemp Regular

    Member
    129
    77
    Jun 5, 2013
    United States
    Prox
    definitely server lag.

    I would imagine that the mods installed are probably causing tick overload from the local hosted server if you are in singleplayer.

    Minecraft has two forms of lag: framelag, which is obvious from f3 diagnostics in top left, and then server lag which becomes more obvious the higher is becomes due to desync on player actions.

    Frame lag is cause by any number of things, mainly from gpu rendering not being powerful enough.

    Server lag is a hard one to treat because it mainly comes from having too many operations happening between server calculations. This is especially hard on processors because minecraft only runs servers on a single thread, so you seriously need to pump out high clock speed. What happens when your client does something and there is server (tick) lag, is that your client will show things operating normally, but the server is still backed up calculating everything from before, leading to exactly what you see there: a block being mined and then dropping a second later.

    Only way to fix your issue is to put less load on the server, either by removing mods, using less machines, or giving it a more powerful (higher clock speed) cpu.

    As a side note: it isn't that uncommon for minecraft to eat all the RAM from your memory causing minecraft to chug. If you are using a launcher, check it's settings and look for a way to raise the memory allocated to java. Just remember, minecraft will eat every last bit, so if you give it too much, your OS will chug instead.
     
    Last edited by AbyssalMonkey, Sep 13, 2016
    smileyhead likes this.
  5. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Okay, I've uninstalled every mod expect OptiFine (which I had no problems with before), and it still happens.
    Could it be a misconfiguration?
     
  6. evandixon

    evandixon PMD Researcher

    Member
    1,666
    788
    May 29, 2009
    United States
    Could be anything.

    Possible causes:
    • The server machine not having enough resources (RAM, CPU, etc.)
    • The server machine being busy working on something else
    • Too many entities in one place (somehow recently I increased TPS from 5 to 20 by discovering that somehow there were hundreds of villagers crammed into one house. May also be caused by mob spawners spawning too many things in one place.)
    • Tile entities taking too long to update. Things that I've done that have caused this in the past:
      • Massive numbers of hoppers in one area
      • Having a wall of 64 Thermal Expansion Energy Cells all connected to each other.
      • Chaining a bunch of AE ad-hoc networks together
      • Inefficient computercraft programs
     
  7. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    I'm in the middle of a forest. Could that be the cause?
     
  8. evandixon

    evandixon PMD Researcher

    Member
    1,666
    788
    May 29, 2009
    United States
    Probably not, but sometimes things happening underground could be. Or maybe several chunks away. Since this is server lag, it could be something another player is doing.
     
  9. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    I'm in singleplayer.
    That's why it's so weird to me. And it didn't happen before. It started doing it now.
     
  10. evandixon

    evandixon PMD Researcher

    Member
    1,666
    788
    May 29, 2009
    United States
    Things to check:
    • Ensure Java has enough RAM. When in doubt, give it as much as you can, leaving a few GB for the OS and background processes
    • Ensure Java's running under a GPU (if applicable). Some laptops like mine run some programs with integrated graphics to save battery.
    • Ensure there aren't any background programs hogging your computer's resources.
     
  11. Supster131

    Supster131 (づ。◕‿‿◕。)づ *:・゚✧

    Member
    3,187
    2,204
    Jan 19, 2016
    United States
    My Computer
    Ever since 1.3, Minecraft singleplayer runs a local server.

    You must have done something probably.
     
  12. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Didn't work. :(
    It's already running on the non-integrated card.
    Nope.
     
  13. evandixon

    evandixon PMD Researcher

    Member
    1,666
    788
    May 29, 2009
    United States
    Is the GIF showing a new world?

    What modpack are you using, or is this vanilla?
     
  14. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Yes.
    I have Forge and OptiFine installed. No modpacks.
     
  15. DeoNaught

    DeoNaught ¯\_(ツ)_/¯

    Member
    1,468
    1,291
    Aug 22, 2016
    United States
    Over there ;)
    Put your Fps in the settings to 60, and try that, it should be in video settings
     
  16. evandixon

    evandixon PMD Researcher

    Member
    1,666
    788
    May 29, 2009
    United States
    Have you tried it without OptiFine? If that doesn't work, what version of Forge are you using? You may want to try a different version, for the science of it.
     
  17. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    Didn't do a thing.

    — Posts automatically merged - Please don't double post! —

    It's worse without OptiFine (it's an optimisation mod after all).
    Latest version of Forge.

    But personally, I don't think they are the problem, since I've had no problems whatsoever before today.
     
  18. DeoNaught

    DeoNaught ¯\_(ツ)_/¯

    Member
    1,468
    1,291
    Aug 22, 2016
    United States
    Over there ;)
    Did you try reinstalling minecraft? maybe Backup Mods and the Reinstall minecraft
     
  19. migles

    migles Mei the sexiest bae

    Member
    GBAtemp Patron
    migles is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    6,810
    4,568
    Sep 19, 2013
    Saint Kitts and Nevis
    my dad works for nintendo.
    Make sure your laptop is not in power saving mode, change to full performance
     
  20. smileyhead
    OP

    smileyhead Bow ties are cool.

    Member
    GBAtemp Patron
    smileyhead is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,587
    5,500
    Aug 31, 2015
    Hungary
    Budakeszi, Hungary
    It's in performance mode at all times.