作者:rebot | 分类:模组
Minecraft 版本: 26.1 26.1.1 26.1.2
平台: neoforge
标签: optimization
Reduces performance impact of command blocks by caching parsing results.
When running command blocks, the game parses the command text every time it is run. This takes up a lot of redundant processing time. Instead if the results of parsing are stored in memory we can speed up command execution. The command only needs to be parsed again when it is changed.
Depending on the number of command blocks you use, the performance gains may vary.
You can safely expect that the TPS impact of command blocks will reduce by at least 10-20%. Gains will likely be smaller for commands that affect blocks than other, less intensive commands.
Testing with real-world command usage on a creative server showed a reduction of about 30% (overall 3-4% of server busy time).
请登录后举报
暂无评论,抢个沙发吧~