Lag Busting
Lag
There are generally three different types of lag:
Latency
This is caused by network congestion or connection issues.
Symptoms of latency include:
- falling through the world when first joining or teleporting to another region.
- unexplained kicks to another server (this happens when our proxy detects that your connection is failing and tries to "keep it alive" by reconnecting you to the next available server).
- significant delays in command or chat execution.
- "rubber banding", or snapping back to a previous location due to de-sync between the server and your client.
- complete disconnection from the network.
Measuring Latency
One of the measures of latency includes your ping, which is how long it takes a packet of information to travel from your computer to the server and back again, measured in milliseconds. A visual representation of your ping on BadWolfMC is available for Java clients in the tab list. It can also be measured more precisely by using the /ping command. A ping in the double digits is generally considered good, but the lower this number is the better.
Another great measure of latency is a tool called WinMTR, which runs a traceroute while also detailing any packet loss along the way.
A basic traceroute can also help, although by itself isn't as useful for diagnosing issues. This tool is built into your computer, though, so it doesn't require additional downloads:
On Windows: Open the Command Prompt by pressing the Windows key + R, typing "cmd", and pressing Enter. Then, type "tracert" followed by a space and the destination's IP address or web address. For example, to trace your connection to our game servers, you would type "tracert play.badwolfmc.com".
On Mac: Open the Network Utility by opening Spotlight (Left Cmd + Spacebar or Click the Magnifying Glass on the right of the Menu Bar) and typing "Network Utility". Then, choose Traceroute, enter a destination, and click Trace.
Graphics Lag
Also referred to as FPS lag, this occurs when the player's machine does not have enough processing power for the demands being put on it. Symptoms include FPS drops, frame stuttering, longer resource pack (RP) loading, and game crashes.
Server Lag
Measured by a server's Ticks Per Second (TPS) on a scale of 1-20, this is how long it takes the server to execute the functions of the game. A perfect TPS will be 20, meaning everything is running on time, while anything below 16 may indicate that some processes are taking too long and players may experience noticeable lag.
It should be noted that TPS is measured both on the server and the client (client TPS is viewable in your F3 screen), but they are separate and largely unrelated. Client TPS is mostly only useful as a metric in single-player mode.
Thanks to our dedicated setup and significant optimization, server lag is rare on BadWolfMC. It is usually only experienced during "update seasons" when significant changes are being made to the core game and plugins, and bugs are being ironed out.
Troubleshooting Latency Issues
One of the quickest things that can help overall is using OptiFine. It's a well-known optimization mod that helps your computer process and load the world a bit easier. While it won't help with network issues, it can help mitigate some of the effects of a poor connection.
The following steps can also be taken to help solve latency issues. Generally speaking, checking your setup and clearing DNS cache should be attempted first.
Check Your Setup
- Close any other open programs on your computer that may be using resources.
- Restart your computer (yes, we know, but "turning it off and on again" is a solution to many problems)
- Prefer a wired connections if possible, since these will always be more stable than Wi-Fi.
- Restart your modem and router. Unplug the power connections from the back, wait at least one minute, plug it back in, then wait for your internet to reconnect.
- Check other devices that may be using your network, disabling any unnecessary connections. These can crowd your network and take up precious bandwidth.
- If using a VPN try switching routes to something with more bandwidth available and/or an exit point near Chicago, IL (the physical location of our sever).
Clear Your DNS Cache
On Windows:
Open Command Prompt as Administrator - in the Windows search bar type "Command" until you see Command Prompt in the suggestions. Right click that suggestion and select "Run as Administrator".
Type the following commands in order, hitting enter after each, and waiting for each to complete before moving on:
- ipconfig/flushdns
- ipconfig/registerdns
- ipconfig/release
- ipconfig/renew
- netsh (by itself, it will go to a new line)
- winsock reset (not a typo)
It will prompt you to restart your computer at this point, which you should do.
On Mac:
- Open Terminal
- Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Press Enter
- Enter your administrator password when prompted
- Press Enter again
- Quit Terminal
Switch DNS Servers (Advanced)
If you consistently have DNS issues (clearing the cache may help for a bit but you find yourself having to do it frequently), you might want to consider switching DNS providers.
We've had several players, especially international players, have luck by switching their DNS servers to the public Google DNS. To do this, follow the instructions at https://developers.google.com/speed/public-dns/docs/using.
Troubleshooting FPS Issues
Again, using OptiFine will significantly help optimize your client, specifically targeting FPS problems. It provides several settings that can help to fine-tune visuals to better suit the capabilities of your machine, including reducing "nice to have" things while favoring performance, or vice versa if your machine can handle it.
The following steps can also be taken to help solve frame issues:
Reduce Entities
Entities (including tile entities), redstone, blocks with transparencies, and particles are some of the worst FPS offenders. Reducing these in your area will significantly improve your FPS performance.
The worst entities include all types of mobs (animals, monsters, villagers, etc.), item frames, armor stands, chests, and signs.
Resource Packs & Shaders
Unfortunately your second favorite resource pack (since the first is obviously the BadWolfMC Resource Pack) can significantly impact your FPS. The BadWolfMC RP itself is heavily optimized and should not impact performance with the exception of some of the more complex models. One of the more common offenders is the popular "Vanilla Tweaks" RP, especially any 3D tweaks. You can rule out your RP as a factor by temporarily disabling it in your Minecraft client options.
Similarly, any shaders you may be using, while quite lovely, are often very resource heavy and should only be used on more robust systems.
Dynamic Lights
A very cool feature of OptiFine is the Dynamic Lights which is found in the Menu under "Video Settings...", but it may be another culprit. If you are experiencing significant FPS problems, you may want to try disabling this feature (some players have found this to be a problem particularly around the Alpha spawn Mall).
Video Settings
There are several video settings that can help reduce FPS issues, and we recommend trying out different settings to find a combination that works for you. Reducing render distance and setting any options to "fast" instead of "fancy" can help to reduce frame lag. OptiFine also adds additional settings here that can further tweak performance, including reducing the number of particles and changing the way some transparent blocks are handled.