How to fix Minecraft lag
How to make Minecraft run faster
There are different types of Minecraft lag, it can be Client lag where your computer cant keep up, it can be your Network connection to a Minecraft server or it could be the server itself struggling, Most times its your network connection to a server.
How to Diagnose & Fix Minecraft Client side Lag (FPS)
How do you know if you have client side lag?
Press F3 and look at your FPS, If its Below 25 then you will start to notice the game running slowly, the higher the FPS the smoother Minecraft is running on your computer.
Client lag is when your computer isn’t powerful enough to run Minecraft smoothly, this can sometimes happen when you visit a world area with a lot of entities, like entering a server marketplace with lots of signs and chests.
How do I improve my Minecraft Client FPS?
- Make sure to use the Default Minecraft Client with no mods/shaderpacks/default resource packs
- Make sure you are using the default Java bundled with Minecraft and not the system Java on your profile you are using, You can do this by editing your profile and making sure you are using the bundled Java which is Java version 1.8. 0_51.
- Use Optifine, this will make a massive difference on low end hardware
- Lower your video settings
Press Escape > Options > Video-Settings
- Graphics: Fast
- Smooth Lighting: OFF
- Clouds: Fast/Off
- Render distance: 4-6
- Use VSync: ON
- Entity shadows: OFF
- Particles: Minimal
- Fog: OFF
- Optifine Settings (Once you have Optifine installed):
Escape > Options > Video Settings
- Render distance: 2-6
- Use VBOs: ON
- Quality -> Anti aliasing: OFF
- Close all other applications on your computer (Close your web browser streaming YouTube!) You can check your Windows Task Manager to see what Applications are using the most CPU/RAM/Disk/Network by using CTRL+ALT+DELETE
- Use an 8×8 Resource pack, you can pick one from PlanetMinecraft.
- Re-install Minecraft to make sure you don’t have years of clutter or broken/corrupt game, this means fully un-installing first.
- Allocate more memory (RAM) to your Client, This can help stop crashes when connecting to servers if its trying to load too much data into memory.
Minecraft Launcher > Installations > Press the Hamburger 3 dots on your profile > Edit > More Options. In the JVM arguments change:
-Xmx4Gto use 4GB of RAM instead of 1, you should be fine with 2GB.
Do check your computers amount of RAM first.
- If your FPS is still low you can change your display resolution inside Windows/MacOS/Linux
How do I detect whats causing lag in my Minecraft world?
Minecraft has a debug screen, you can access a Pie-Chart break down of memory usage by using SHIFT+F3, this will allow you to navigate a pie chart tree to see what objects in your world are creating the most Client lag.
Then we can press 1 on our keyboard to take us to the “gameRenderer” tree, which gives us
Entities taking up 93.45% of all Game render memory, can can again press 1 on our keyboard to expand the entities tree to get
We can now see that in this area of the world, we get more client side lag due to entities, and specifically blockentities, going any deeper Minecraft sadly does not give specific blocks and just reports “Unspecefied” which isn’t very helpful, but at least we know that its blockentities not mob entities causing the most client side lag in this specific area we have chunks loaded.
So we have found out that in this specific area, which just happens to be a the PiateCraft marketplace, its all the Signs and Chests which are causing entity lag to clients as these are the most common block entities in this area.
How to Diagnose & Fix Minecraft Network Lag (PING)
Ping, is your Network latency to communicate with a Minecraft server, you can ping a Minecraft server from in-game and also outside the game.
You can see your ping to a server by looking at the bars in the server list and also when you press tab on a server, on PirateCraft you can also use /ping in-game.
The biggest variable is your physical location to the Minecraft server, if you are in the USA and you are connecting to a server in Germany this may result in slightly higher latency as data has to be sent to and from server <=> Client, but it won’t effect gameplay unless you have Network/Internet issues.
How do I diagnose and improve my Network/Internet connection?
- See if you have a bad connection by looking at your ping from the Bars shown on server list/tab in-game, 1-2 bars means you have poor connection to the Minecraft server but you will start noticing issues from 3 bars, 4-5 bars should play fine.
The Minecraft green bars represent a ping number which roughly translates to:
- 5 Bars = 0 – 150 Ping
- 4 Bars = 150 – 300 Ping
- 3 Bars = 300 – 600 Ping
- 2 Bars = 600 – 1000 Ping
- 1 Bar = 1000+ Ping
- You can check you specific ping to the server in-game with /ping this will give you an exact number, make sure to log in, wait for the world to load and then use /ping, the lower your ping the better connection you have to the Minecraft server, You can /ping over a space of time, it usually starts high as soon as you teleport to a new area and decreases once the data is loaded, as soon as you teleport again it will temporarily spike while it loads all the data, so use /ping over a time to get a clear overview of your connection.
- Lets check your internet! You can check your internet speed using fast.com and speedtest.net You will need at least 1Mb/s Download and 0.5Mb/s Upload, If you can select Germany as the server to test to, this way you can see a ping/speed to their speedtest servers in the same country as the PirateCraft server.
- Do a traceroute from the commend line to find out at what the slowest point in your connection is. You will want to traceroute the server
mc.piratemc.com, here’s a video on how to do it on windows 10.
You can also use a GUI traceroute/ping checker such as pingplotter, PingPlotter will display data in a graph which will make it easy to pinpoint where the problems are and when they occurred.
Check this page on how to use pingplotter to gather data for when you are having network issues.
Another alternative is to use WinMTR.
- Make sure you are using the correct version of Java, the built in version that comes with Minecraft 1.8. 0_51 not the system version, this will destroy your network connection.
- Reboot your internet router
- Check you have the latest drivers for your Wifi/Lan Card(s) you can do this by visiting the website page for the model of your computer/laptop and look for Support/Downloads section and drivers for your Lan card.
- Try using Googles DNS 184.108.40.206 or Cloudflares DNS 220.127.116.11, How to change DNS on windows. This may help resolve finding a faster route to the Minecraft server.
- Ping the Minecraft server from the command line (Not inside Minecraft) to compare if you have a similar ping in-game to outside the game, if its worse in-game then you may have an issue with your MineCraft install.
- Disable any VPN connection, if your traffic has to first go through another server this will add great latency to your network, some AntiVirus protection software do this to “protect” you, If you have an AntiVirus it may be worth disabling and testing again to see if its that causing network lag.
- Disable any firewalls slowing down your connection, since firewalls check packets your computer is sending and receiving this can have a big effect on your ping.
- Make sure you are using a Wired connection, Wifi creates even more issues to Diagnose, if you are stuck to Wifi you will need to check your internet with a Wired connection to compare how much worse Wifi is making your connection to the internet. You need as little between you and the router is possible, including walls! So check your Wifi strength, sometimes its easier to move the router closer to you, make sure there is nothing next to the router like a wall, closet, or large electronic equipment like a TV that could interfere with the signal.
- Bandwidth congestion, Stop everyone streaming on your network, Is there an console/computer downloading game updates somewhere? Is someone streaming netflix? Got youtube streaming in the background? Stop all big downloads/streams on your home network.
- Bad Weather can effect your internet dramatically, if where you live has heavy snowfall/rainfall this can effect
- Check the servers up, we have an uptime website to check our uptime, also check that the Minecraft Authentication servers are not down, mcsrvstat allows you to check both server status and also if the Minecraft servers are all up.
How do I diagnose server lag (TPS)?
Minecraft server lag is when the server can’t keep up with running the Minecraft server and performance is dropped which is notcible in game. This is measured in TPS (Ticks per second) and for PirateCraft isn’t usually the cause of lag, we have a constant 19.5-20 TPS. 20 is the highest TPS can be (the Best a server can run at).
From time to time we will get a TPS spike from a rouge plugin that’s been badly made, but we are constantly communicating with developers to optimize their plugins when such issues are reported and detected.
PirateCraft Hosted in Germany and is run on its own Dedicated machine with 1 Gbps Network, NVMe SSD Storage, 64GB of Ram and we are nowhere even close to hitting limits (Unlike our old hosting!).
At present only staff are able to run /tps to check on the servers TPS, staff will monitor TPS and always report when there are issues.