Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 230 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 426 KiB After Width: | Height: | Size: 426 KiB |
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 193 KiB |
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 576 KiB After Width: | Height: | Size: 576 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
Before Width: | Height: | Size: 634 KiB After Width: | Height: | Size: 634 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 799 KiB After Width: | Height: | Size: 799 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
7
docs/advance/advance.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 进阶教程
|
||||
slug: /advance
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
|
57
docs/advance/folia.md
Normal file
@ -0,0 +1,57 @@
|
||||
---
|
||||
title: Folia
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Folia
|
||||
|
||||
Folia 是 Paper 的一个分支,由 Minecraft 优化 BOSS Spottedleaf 开发。
|
||||
|
||||
## 简介
|
||||
|
||||
### 好处
|
||||
|
||||
Folia 与 Vanilla 最大的不同在于 Tick 不再有主线程,而是将区块进行分组,每个独立的区域都有自己的 Tick Loop
|
||||
|
||||
如果你无法理解这段话,你可以看这样子做的好处:
|
||||
|
||||
现在有一个地图,有四个区块,分别是A,B,C,D
|
||||
|
||||
小明在A处建造了一个卡服机,能把服务器TPS干到10一下的那种
|
||||
|
||||
如果是Paper(或者Purpur及其分支),那么A,B,C,D四处的TPS都会掉到10以下,但如果我们用Folia(假设ABCD分在不同的Region),那么只有A处的TPS会掉到10以下,B,C,D的TPS仍然不受影响
|
||||
|
||||
并且Folia可以更好的利用CPU多核
|
||||
|
||||
### 坏处
|
||||
|
||||
Folia 完全破坏了 Bukkit 插件的兼容性,每个 Bukkit 插件都必须为 Folia 做兼容(有专门的 Fork 为 Folia 做 Bukkit 插件兼容,后面会讲),所以,Folia 目前只支持很少插件
|
||||
|
||||
## 要求
|
||||
|
||||
Folia这么好,但并不是每个服务器都可以体验的,你需要确保你的服务器符合以下条件,这样才可以从Folia中受益
|
||||
|
||||
* 16个**物理**CPU核心
|
||||
* 玩家较为分散(生存多人游戏、无政府、空岛或一些迷你游戏服务器)
|
||||
* 你需要的插件支持 Folia
|
||||
|
||||
如果你不符合,去用Leaf吧,符合的话继续看下去!
|
||||
|
||||
## 安装
|
||||
|
||||
我们不推荐直接使用Folia,因为这需要自己去构建,[Luminol](https://luminolmc.com/)是一个非常棒的选择,如果你需要1.20.1/2,你可以使用[Molia](https://github.com/Era4FunMC/Molia)
|
||||
|
||||
请选择Luminol,我们后面会讲LightLuminol,下载到本地后,替换原来的核心就可以了
|
||||
|
||||
## LightLuminol
|
||||
|
||||
LightingLuminol 是 Luminol 的分支,旨在修复对 BukkitAPI 的破坏,最大程度保证 Bukkit 插件的兼容性。但是,虽然LightLuminol对于Bukkit插兼容性较好,但是会有许多问题,包括不定时的NullPointerError,Thread不安全,内存泄露,数据丢失(一天崩个几十次,挺正常的)
|
||||
|
||||
所以在开始使用LightingLuminol,请想想Leaf是不是更好?
|
||||
|
||||
如果你需要1.20.1/2,你可以使用[DirtyMolia](https://github.com/Era4FunMC/DirtyMolia)
|
||||
|
||||
(Molia和Luminol其实是同一个作者~~)
|
||||
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
title: 进阶教程
|
||||
slug: /Sundry/Advance
|
||||
sidebar_position: 9
|
||||
---
|