Skip to content

Commit

Permalink
Merge branch 'PaperMC:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Q2297045667 committed Oct 13, 2024
1 parent 5f06f33 commit 79a7b2f
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions README_ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p> 将区域化多线程添加到专用服务器,的<a href="https://github.com/PaperMC/Paper">Paper</a> Fork</p>
</div>

## Overview
## 概述

Folia将附近加载的区块分组,形成一个“独立区域”
参见 [PaperMC文档](https://docs.papermc.io/folia/reference/region-logic) 有关Folia的详细信息
Expand All @@ -19,7 +19,7 @@ Folia将附近加载的区块分组,形成一个“独立区域”

更详细但抽象的概述: [项目概述](https://docs.papermc.io/folia/reference/overview).

## FAQ
## 问答

### 哪些服务器类型可以从Folia中获益?
玩家数量多且自然分散的服务器类型
Expand All @@ -44,23 +44,18 @@ Folia对主频需求不是很高。最好16个核心以上(注意是核心,
不要将此标志与“-XX:AParallelGCThreads=n”混淆,因为并行GC线程仅在GC暂停应用程序时运行,因此不应被考虑在内。
在所有这些全部分配完成之后,服务端的分配资源应该不超过系统的80%(分配的线程总数<可用cpu的80%),可以分配给tickthreads(在全局配置下,threaded regions.threads)。

The reason you should not allocate more than 80% of the cores is due to the
fact that plugins or even the server may make use of additional threads
that you cannot configure or even predict.
你不应该分配超过80%的物理核心的原因是,插件甚至服务器可能会使用这些额外线程用来计算其他服务。

Additionally, the above is all a rough guess based on player count, but
it is very likely that the thread allocation will not be ideal, and you
will need to tune it based on usage of the threads that you end up seeing.
以上都是基于玩家数量的粗略猜测,但线程分配很可能并不理想,您需要根据最终看到的线程使用情况对其进行调整。

## Plugin compatibility
## 插件兼容性

There is no more main thread. I expect _every_ single plugin
that exists to require _some_ level of modification to function
in Folia. Additionally, multithreading of _any kind_ introduces
possible race conditions in plugin held data - so, there are bound
to be changes that need to be made.
现有的每个插件都需要进行一定程度的修改才能在Folia中运行。
此外,任何类型的多线程都会在插件保存的数据中引入可能的竞争条件,因此,必然需要进行更改。

So, have your expectations for compatibility at 0.
如果你在寻找能够兼容Folia的插件那么我这里有一份兼容性列表
[folia-plugins](https://github.com/BlockhostOfficial/folia-plugins)
[modrinth](https://modrinth.com/plugins?g=categories:%27folia%27&g=categories:folia)

## API plans

Expand Down

0 comments on commit 79a7b2f

Please sign in to comment.