Jump to content

[Tips and Guidelines] Reducing Lag


Ness27

Recommended Posts

unknown.png

Tips for Reducing Lag!

Hello and welcome to an informal set of guidelines and tips for reducing lag. One continual concern faced when hosting a modded Minecraft server, like everything else in the world, is performance. How well the server's performance is and how long it can continually perform at this rate. (Analytical tools such as TPS) Much of the time, poor Minecraft server performance is blamed on the machine hosting the server (seems intuitive, right?). However, as Brunyman has explained: 

On 12/31/2019 at 6:36 PM, brunyman said:

We have 8 dedicated servers, all of them are running on i7 gen7 CPU except for one that is a Ryzen 7 first gen. By the end of January and beginning of February we will replace 6 of them with new intel i7 gen10 and Ryzen 7 3rd gen hardware. 

Computing power and memory speed/capacity are not necessarily the criminals here. As it has been explained through our discord, "We run servers with 64gb of ram, yet we allocate 10-12gb per server. We use the rest as a ram drive to load the world, because ms lag for the world causes tps lag- ram will only lag the server if it caps out, which it has yet to do. Only way a 10gb server would run out of memory would be if a memory leak was discovered." It is even recommended from Sponge contributors that 4-6gb is optimal. Without diving too deep into the actual performance of a Minecraft server under certain conditions and arguments, let us take a look at what diminishes server performance IN-GAME

Ticks per Second (TPS)

 

The main obstacle faced in-game, is lag. (The entire focus of this post) Server lag described in Minecraft as TPS. TPS stands for Ticks per Second. The maximum speed (Ticks per a second) is 20. At this speed, this is the fastest the server can perform and distinguish the changes in the game's perspective. Each "tick" will recalculate and adjust every mechanic of the rendered server. This is an absolute value, in the sense a Minecraft server cannot perform better than 20 TPS (one tick per 50ms). What causes 'lag' is when a tick is skipped or delayed because the server is still completing the last tick. This results in the server skipping ticks and eventually lagging and causing all the issues we hate to see. The following information will help you become aware of what usually diminishes server TPS. 

The Smeltery (Tinker's Construct)

 

The Smeltery can be the culprit of generating lag. In general, a smeltery is just fine. It is the few absurd sizes of smelteries that harm the server performance. Large smelteries cause problems more often than you'd realize. The following picture is a fine-sized smeltery:

3ruhx6v.png

Theres no reason to make it any larger, please.

You may also want to avoid, full automation on smelteries. The following picture is an example of something not to do:

VcYznBo.png

Mob Farms

 

Badly constructed mob farms are the demise of server performance. Mob farms are continually the culprits of lag generation. Numerous mobs stacking on each other can eventually overwhelm the server. 

Id8iLDw.png

Now this is a profiled result from one of the servers. You can see the usage rate and time per a tick for stacked EXP orbs and mobs is high. This high usage percentage can be causing quite an impact on the server's performance. The best way to avoid this; 

  • Only spawn an amount of mobs you can kill ( do not have 15 spawners and 1 mob crusher )
  • Use EXP Vacuums to collect EXP orbs
  • Turn off spawners 
  • Have an efficient setup ( Expect your setup to not lose power or storage capacity for drops )

Here is an example of what happened when power was lost to a mob crusher:
9iZZz71.pngNot a fun case to resolve ^

-Don't be that player

One Chunk Bases

 

Another big hit to server performance and lag is having an entire base packed into a single, chunk-loaded base. This is a nightmare, as this chunk will be the chunk that delays an action and causes the skipping of ticks. (Low TPS - Server lag). The following picture is an example of what not to do:

7lAzVsL.pngq9JCq2q.png

 

Instead, spread your base out:

CpOr2gW.png

 

The Quantum Quarry

 

Not just the specific quantum quarry can cause a hit to TPS, many quarries from various mods do. The following is an example:

rXSbFvR.png

This would be common to see. High percentage of use for Quarries, multiple calls, and a low TPS. The craftersland team will not force anyone to not use a quarry, I just recommend using other methods to obtain the respective resources.

 

Note: Players found to be purposely generating lag will be punished accordingly.

 
Link to comment
Share on other sites

  • 3 years later...
On 1/1/2020 at 2:34 PM, Ness27 said:

unknown.png

Tips for Reducing Lag!

Hello and welcome to an informal set of guidelines and tips for reducing lag. One continual concern faced when hosting a modded Minecraft server, like everything else in the world, is performance. How well the server's performance is and how long it can continually perform at this rate. (Analytical tools such as TPS) Much of the time, poor Minecraft server performance is blamed on the machine hosting the server (seems intuitive, right?). However, as Brunyman has explained: 

Computing power and memory speed/capacity are not necessarily the criminals here. As it has been explained through our discord, "We run servers with 64gb of ram, yet we allocate 10-12gb per server. We use the rest as a ram drive to load the world, because ms lag for the world causes tps lag- ram will only lag the server if it caps out, which it has yet to do. Only way a 10gb server would run out of memory would be if a memory leak was discovered." It is even recommended from Sponge contributors that 4-6gb is optimal. Without diving too deep into the actual performance of a Minecraft server under certain conditions and arguments, let us take a look at what diminishes server performance 

Ticks per Second (TPS)

  Hide contents

The main obstacle faced in-game, is lag. (The entire focus of this post) Server lag described in Minecraft as TPS. TPS stands for Ticks per Second. The maximum speed (Ticks per a second) is 20. At this speed, this is the fastest the server can perform and distinguish the changes in the game's perspective. Each "tick" will recalculate and adjust every mechanic of the rendered server. This is an absolute value, in the sense a Minecraft server cannot perform better than 20 TPS (one tick per 50ms). What causes 'lag' is when a tick is skipped or delayed because the server is still completing the last tick. This results in the server skipping ticks and eventually lagging and causing all the issues we hate to see. The following information will help you become aware of what usually diminishes server TPS. 

The Smeltery (Tinker's Construct)

  Hide contents

The Smeltery can be the culprit of generating lag. In general, a smeltery is just fine. It is the few absurd sizes of smelteries that harm the server performance. Large smelteries cause problems more often than you'd realize. The following picture is a fine-sized smeltery:

3ruhx6v.png

Theres no reason to make it any larger, please.

You may also want to avoid, full automation on smelteries. The following picture is an example of something not to do:

VcYznBo.png

Mob Farms

  Hide contents

Badly constructed mob farms are the demise of server performance. Mob farms are continually the culprits of lag generation. Numerous mobs stacking on each other can eventually overwhelm the server. 

Id8iLDw.png

Now this is a profiled result from one of the servers. You can see the usage rate and time per a tick for stacked EXP orbs and mobs is high. This high usage percentage can be causing quite an impact on the server's performance. The best way to avoid this; 

  • Only spawn an amount of mobs you can kill ( do not have 15 spawners and 1 mob crusher )
  • Use EXP Vacuums to collect EXP orbs
  • Turn off spawners 
  • Have an efficient setup ( Expect your setup to not lose power or storage capacity for drops )

Here is an example of what happened when power was lost to a mob crusher:
9iZZz71.pngNot a fun case to resolve ^

-Don't be that player

One Chunk Bases

  Hide contents

Another big hit to server performance and lag is having an entire base packed into a single, chunk-loaded base. This is a nightmare, as this chunk will be the chunk that delays an action and causes the skipping of ticks. (Low TPS - Server lag). The following picture is an example of what not to do:

7lAzVsL.pngq9JCq2q.png

 

Instead, spread your base out:

CpOr2gW.png

 

 The Quantum Quarry

  Hide contents

Not just the specific quantum quarry can cause a hit to TPS, many quarries from various mods do. The following is an example:

rXSbFvR.png

Evaluations of trusted online Chile casinos highlight secure, reliable platforms that cater to diverse gaming preferences https://casinochileonline.net/resenas/fresh-casino. Artificial intelligence in online casinos enhances user experience by personalizing content, improving game variety, and ensuring responsive customer support.

 

Note: Players found to be purposely generating lag will be punished accordingly.

 

Thanks for usefull info!

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.

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.

×
×
  • Create New...

Important Information

By using this site you agree to the following Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.