EmptyLava
本帖最后由 EmptyLava 于 2020-7-25 16:59 编辑


用paper测试max-tick-time的不同数值 服务器tps情况的时候 发现即使是设置为0的时候 实体也不会停止计算
换成spigot就好了,怀疑是paper.yml内的某个配置导致的。但是在paper.yml内找了20分钟都不知道是什么配置项导致的

所以想问一下有没有人知道max-tick-time还能受什么影响(我把paper.yml内的布尔值都改为true 也没用)
paper.yml (5.29 KB, 下载次数: 0)

配置文件在这里

Solved https://aikar.co/2015/10/08/spig ... -use-max-tick-time/

PaperSpigot does not offers "max-tick-time"
PaperSpigot 不支持max-tick-time


天辉胡萝卜
疑似是因为这个commit

https://github.com/PaperMC/Paper ... 37ca15a0e2249f10672

This patch adds world configuration options for max-tick-time.entity / max-tick-time.tile which allows setting a hard cap on the amount of time (in milliseconds) that a tick can consume. The default values of 50ms each are very conservative and mean this feature will not activate until the server is well below 15tps (minimum). Values of 20ms each have been reported to provide a good performance increase, however I personally think 25ms for entities and 10-15ms for tiles would give even more significant gains, assuming that these things are not a large priority on your server.

For tiles there is very little tradeoff for this option, as tile ticks are based on wall time for most things, however for entities setting this option too low could lead to jerkiness / lag. The gain however is a faster and more responsive server to other actions such as blocks, chat, combat etc.

EmptyLava
疾风暗影 发表于 2020-7-25 14:37
疑似是因为这个commit

https://github.com/PaperMC/Paper/commit/ce48a8a1394d0489e664237ca15a0e2249f106 ...

草,没看懂
可能是因为这篇文章 https://aikar.co/2015/10/08/spig ... -use-max-tick-time/
后面paper就移除了spigot.yml内max-tick-time的支持

梦江南
几乎插件都是给spigot适配的