From 79a7b2fde19166a453fbc1f95bbddf12536ef90f Mon Sep 17 00:00:00 2001 From: Missing_Love <0xwymx0@gmail.com> Date: Mon, 14 Oct 2024 05:40:22 +0800 Subject: [PATCH] Merge branch 'PaperMC:master' into master --- README_ZH_CN.md | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/README_ZH_CN.md b/README_ZH_CN.md index 2794f68bc..b9ab22f34 100644 --- a/README_ZH_CN.md +++ b/README_ZH_CN.md @@ -4,7 +4,7 @@
将区域化多线程添加到专用服务器,的Paper Fork
-## Overview +## 概述 Folia将附近加载的区块分组,形成一个“独立区域” 参见 [PaperMC文档](https://docs.papermc.io/folia/reference/region-logic) 有关Folia的详细信息 @@ -19,7 +19,7 @@ Folia将附近加载的区块分组,形成一个“独立区域” 更详细但抽象的概述: [项目概述](https://docs.papermc.io/folia/reference/overview). -## FAQ +## 问答 ### 哪些服务器类型可以从Folia中获益? 玩家数量多且自然分散的服务器类型 @@ -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