GregTech 优化
针对 GregTech Modern 7.5.3 的性能优化。
更改内容
配方查找
简而言之,它添加了一个缓存,以加速被动配置下的某些操作。
- 机器会为其输入处理器跟踪一个版本计数器。如果配方搜索未找到任何结果且自上次以来输入未发生变化,则跳过搜索。
- RecipeRunner 按机器缓存分组后的处理器列表,并仅在机器的处理器拓扑发生变化时重新构建它们。
- 空的处理器会更早被跳过,没有内容的配方会提前返回。
机器控制器盖(Machine Controller Cover)
该盖每 40 个刻轮询其红石输入,以修复有时盖会出现故障并在无信号时停止机器或反之的情况。
ME 存储总线/接口
ME 存储总线和接口不再轮询网络。它们改为通过 AE2 接收变更通知。
ME 模式缓冲区
现在每个代理运行一个工作线程,加上缓冲区本身的一个工作线程,并且拥有共享的内部槽位,而不是每个模式一个槽位。这样机器需要扫描的总线更少以查找配方。从玩家的角度来看,它们的工作方式相同,因为槽位允许推送相同的模式且彼此独立。
断电行为
配置文件中有一个选项。默认值(false)保留原版 GregTech 的机器盖和断电行为。如果启用此选项,所有机器都会表现得像安装了启用了“禁用断电”功能的机器盖,直到你放置一个盖并自行禁用它为止。
GregTech Optimizations
Performance optimizations for GregTech Modern 7.5.3.
What it changes
Recipe lookup
In short, it adds a cache that speeds some things up in passive setups.
- Machines track a version counter for their input handlers. If a recipe search found
nothing and no input changed since, the search is skipped.
- RecipeRunner caches the grouped handler lists per machine and rebuilds them only
when the machine's handler topology changes.
- Empty handlers are skipped earlier, and recipes with no contents return early.
Machine Controller Cover
The cover polls its redstone input every 40 ticks to fix that sometimes the cover could malfunction and stop machine without signal or the other way around.
ME Stocking Bus/Hatch
ME stocking buses and hatches no longer poll the network. They get notified about changes from AE2 instead.
ME Pattern Buffers
They now run one worker per proxy + 1 for the buffer itself, and have shared internal slots instead of one slot per pattern. This way machine has fewer busses to scan for recipes. They work the same from the players perspective because the slots allow the same pattern to be pushed and are distinct.
Power failing
There is one option in the config. The default (false) keeps vanilla GregTech machine cover and power failing behavior. If you turn this on, all machines act like they have a machine cover with "disable power failing" turned on, until you place a cover and disable it yourself.
评论 0
登录后参与评分
还没有评论,来抢沙发吧