2024-04-04 19:54:35 +08:00
|
|
|
|
---
|
|
|
|
|
sidebar_position: 2
|
|
|
|
|
---
|
|
|
|
|
|
2024-04-04 20:04:08 +08:00
|
|
|
|
# 调服务端配置
|
2024-04-04 19:54:35 +08:00
|
|
|
|
|
2024-04-04 20:04:08 +08:00
|
|
|
|
## 与实体相关的优化
|
2024-04-04 19:54:35 +08:00
|
|
|
|
|
|
|
|
|
| 配置文件 | 配置项 | 建议值 | 效果 | 副作用 |
|
|
|
|
|
| --- | ----------- | --- | --- | --- |
|
|
|
|
|
| server | view-distance | 4-8 | 较好 | 较小 |
|
|
|
|
|
| bukkit.yml | spawn-limits | 0.5倍 | 好 | 中 |
|
|
|
|
|
| bukkit.yml | ticks-per.monster-spawns | 2-10 | 好 | 中 |
|
|
|
|
|
| bukkit.yml | ticks-per.animal-spawns | 600-1000 | 中 | 小
|
|
|
|
|
| spigot.yml | entity-activation-range | 0.75倍 | 较好 | 中
|
|
|
|
|
| spigot.yml | mob-spawn-range | 3-6 | 较好 | 较大
|
|
|
|
|
| spigot.yml | max-tick-time.entity | 1000 | 负优化 | 较大
|
|
|
|
|
| spigot.yml | squid-spawn-range | 3-6 | 差 | 非常小
|
|
|
|
|
| spigot.yml | arrow-despawn-rate | 20 | 差 | 非常小
|
|
|
|
|
| spigot.yml | merge-radis | 3-4 | 差 | 中
|
|
|
|
|
| paper.yml | despawn-ranges | 0.75倍 | 好 | 较小
|
|
|
|
|
| paper.yml | optimize-explosions | TRUE | 较好 | 非常小
|
|
|
|
|
| paper.yml | max-entity-collisions | 3-6 | 差 | 非常小
|
|
|
|
|
| paper.yml | experitence-merge-radis | 4-5 | 差 | 非常小
|
|
|
|
|
| paper.yml | nerf-pigmen-from-nether-portals | TRUE | 较低 | 较小
|
|
|
|
|
| paper.yml | mob-spawner-tick | 2-4 | 中 | 中
|
|
|
|
|
| paper.yml | count-all-mobs-for-spawning | TRUE | 低 | 小
|
|
|
|
|
| purpur.yml | brain-ticks | 5 | 较好 | 中
|
|
|
|
|
| purpur.yml | use-brain-ticks-only-when-lagging | FALSE | 中 | 较大
|
|
|
|
|
|
2024-04-04 20:04:08 +08:00
|
|
|
|
## 与tiles相关的优化
|
2024-04-04 19:54:35 +08:00
|
|
|
|
|
|
|
|
|
| 配置文件 | 配置项 | 建议值 | 效果 | 副作用 |
|
|
|
|
|
| --- | ----------- | --- | --- | --- |
|
|
|
|
|
| spigot.yml | max-tick-time.tile | 1000 | 负优化 | 较大
|
|
|
|
|
| spigot.yml | ticks-per.hopper-transfer | 默认2倍 | 中 | 较小
|
|
|
|
|
| spigot.yml | ticks-per.hopper-check | 默认2倍 | 较好 | 较小
|
|
|
|
|
| spigot.yml | hoppper-amount | 默认2倍 | 中 | 较小
|
|
|
|
|
| paper.yml | hopper.disable-move-event | 自行判断 | 较好 | 较大
|
|
|
|
|
|
|
|
|
|
|
2024-04-04 20:04:08 +08:00
|
|
|
|
## 与区块相关的优化(这一部分1.19有大量修改等有空再写)
|
2024-04-04 19:54:35 +08:00
|
|
|
|
|
|
|
|
|
| 配置文件 | 配置项 | 建议值 | 效果 | 副作用 |
|
|
|
|
|
| --- | ----------- | --- | --- | --- |
|
|
|
|
|
| bukkit.yml | chunk-gc | 400 | 中 | 非常小
|
|
|
|
|
| spigot.yml | view-distance | 4-8 | 较好 | 中
|
|
|
|
|
| paper.yml | max-chunk-sends-per-tick | 默认0.75倍 | 中 | 小
|
|
|
|
|
| paper.yml | max-chunk-gens-per-tick | 默认0.75倍 | 中 | 小
|
|
|
|
|
| paper.yml | delay-chunk-unloads-by | 8s | 较差 | 非常小
|
|
|
|
|
|
|
|
|
|
|
2024-04-04 20:04:08 +08:00
|
|
|
|
## 与网络相关的优化
|
2024-04-04 19:54:35 +08:00
|
|
|
|
|
|
|
|
|
| 配置文件 | 配置项 | 建议值 | 效果 | 副作用 |
|
|
|
|
|
| --- | ----------- | --- | --- | --- |
|
|
|
|
|
| server.properties | use-native-transport | true(linux) | 中 | 无
|
|
|
|
|
| server.properties | network-compression-threshold | -1(BC) 128(单端) 0(极限) | 中 | 中 |
|