added docs to improve lag

This commit is contained in:
aleabodo 2024-07-21 07:38:41 +02:00
parent 2def96bed9
commit b0e4cd5783
4 changed files with 83 additions and 3 deletions

View File

@ -68,7 +68,7 @@ These are some of the most important terms you should know when working with Git
---
:::info[Info]
:::tip
You can make multiple commits on your account's forked repository before making a pull request. This is especially useful if you need to add multiple files like pictures for a page.
:::

View File

@ -7,6 +7,6 @@ On this server you can modify armor stands to a great extent. You can move it, r
3. This GUI menu lets you modify everything about the armor stand. Some features, like spawning, are disabled to fit in better with the Survival gameplay. I recommend watching [this tutorial video (8:30)](pathname://https://youtu.be/x0a11Dpc4Ng?si=DFgwVKvJ2jpDZk-r&t=514) to learn how to use the feature.
4. When you're done modifying run `/ast` again to close the menu.
:::info[Tip]
:::tip
Make sure to make it invulnerable after you're done making your character if you don't want players to accidentally punch it.
:::

View File

@ -29,7 +29,7 @@ You can easily save schematics (`.schem`) files from your builds.
3. Run `//download`
4. Follow the instructions in chat and download the schematic from the linked website.
### Load Schematic
### Upload Schematic
1. Visit https://athion.net/fawe/
2. Upload the schematic to the site.
@ -37,6 +37,10 @@ You can easily save schematics (`.schem`) files from your builds.
4. Paste it into the game chat.
5. Run `//paste` or `//paste -a` to paste the loaded schematic.
:::warning[You cannot upload .litematic files!]
The Litematica mod uses a unique schematic file that no other mod uses, including World Edit. You can convert the .litematic file to the .schem file that World Edit understands with the [Lite2Edit](pathname://https://github.com/GoldenDelicios/Lite2Edit/releases) tool. Learn more on their [documentation](pathname://https://github.com/GoldenDelicios/Lite2Edit).
:::
## Using World Edit
- Watch [this video](pathname://https://www.youtube.com/watch?v=SOOvommDpUA) to learn the basics of World Edit.

View File

@ -0,0 +1,76 @@
# How to Improve Lag
We're all playing on the same server and sharing the same ressources. If everyone makes just very small changes to their farms and redstone, it can have a huge impact on server performance.
Better performance allows us to build even crazier Redstone contraptions and use a larger simulation distance without lagging the server.
Below are a few things that you can do to improve server lag without having any impact on your gameplay:
## Disable villager AI
:::danger[High Impact]
:::
<details>
<summary>Details</summary>
Villagers often contribute to 60-80% of the entity lag on a server. That's because their AI is very badly implemented in Minecraft. Every other game tick they will compute complex calculations to find their nearest village center, find their workbench, find other villagers to talk to, and so on. Please disable their AI if you only need them for trading.
</details>
1. Put your trading villagers in a 1x1-block hole/room.
2. Put the lectern (or other workbench) in front of it.
3. Put a magma block underneath the lectern.
## Optimize hoppers
:::warning[Medium Impact]
:::
<details>
<summary>Details</summary>
Hoppers can contribute to server lag because they constantly check for items to transfer. When a hopper is not interacting with another container, such as a furnace or composter, it is in a continuous state of checking for items. Placing a container like a furnace or composter above the hopper prevents it from performing these checks because the hopper knows that it cannot pull items from a container without items.
</details>
- Put a composter or furnace above every hopper that has no other hopper above it and does not need to pick up items.
- Avoid very long hopper chains. Use water instead.
## Avoid light-level changes
:::warning[Medium Impact]
:::
<details>
<summary>Details</summary>
When a light source is added, removed, or changes state (e.g., turning on a redstone lamp), the game must recalculate the light levels for each affected block. Light propagates outward from the source, affecting a potentially large number of blocks. Light level changes trigger block updates. The game checks adjacent blocks to see how the light level change affects them, leading to further updates if those blocks also need to change their light levels. This cascading effect can quickly multiply the number of calculations required, especially in complex or densely built areas.
</details>
- Avoid flickering redstone lamps
- Redstone wire and Redstone torches emit light and the light changes when being activated.
- Use as little Redstone wire as possible (observers are often more efficient)
- Light up the area around the contraption! If the light level is above 7 at the Redstone (which is the light level of powered Redstone) then the light level changing algorithm won't be triggered.
## Avoid building many farms at one spot
:::warning[Medium Impact]
:::
<details>
<summary>Details</summary>
If all of your farms are at one spot they are all being loaded at the same time (even if you don't need them) they use up server performance. Some players want to build all of their farms at their base and also build a massive storage system. This is a really bad idea and if the server lags, this will make your farms less efficient aswell.
</details>
- Build **multiple** farm districts for your farms. Only have a selective set of farms at your base.
## Turn off gravity of decorational armor stands
:::info[Low Impact]
:::
<details>
<summary>Details</summary>
Armor stands have gravity by default and can be moved by water and other physics items. Therefore, they are being ticked like every other entity. If you have lots of armor stands in your base for decoration, please disable the gravity to disable their physics.
</details>
1. Face the armor stand and run `/ast`
2. Scroll with your mousewheel to select the nether star.
3. Right-Click
4. Click the ghast tear to toggle the gravity.
## Avoid having too many entities in your base
:::info[Low Impact]
:::
<details>
<summary>Details</summary>
Although the AI computation of entities are not as bad as [Villagers](#disable-villager-ai), they still do some AI computation to move around the world.
</details>
Please don't have massive chicken and cow farms if now needed. Kill entities when you don't need them anymore.