概览
Lazy AI 会根据生物与玩家的距离,动态降低其 AI 计算频率和精度。靠近玩家的生物行为正常,而较远的生物更新目标、寻路和其他行为的频率会降低。这能确保更流畅的性能,尤其在生物密集的世界中。
Lazy AI 基于游戏的模拟距离 * 距离缩放 来进行距离计算
性能差异
毫秒数越低越好(目标:每刻 50ms 或更低)
原版性能
Lazy AI 性能
使用 AI 优化类型“动态”将根据 TPS 在三种优化模式之间动态切换
| 最低 | 适中 | 激进 |
|---|---|---|
原版与 LazyAI 对比
生物密集测试世界中的 TPS 对比
巨型村民交易大厅中的 TPS 对比
功能
- 基于距离的 AI 缩放 | 减少远离玩家生物的 AI 更新
- 寻路优化 | 简化远距离下的路径计算
- 降低目标执行频率 | 远离时,观察、漫游和引诱目标的执行频率降低
- 可配置行为 | 通过 模组菜单 访问简单配置文件,轻松平衡性能与游戏体验
- 服务器端提升 | 即使在服务器上也能降低每刻负载
设置
- AI 优化类型 | 此设置控制优化的激进程度
- 距离缩放 | 此设置控制你的模拟距离中,被视为近程和远程的百分比范围
- 生物引诱延迟 | 此设置控制动物被物品引诱时的延迟时间
- 禁用僵尸踩踏蛋 | 此设置控制是否阻止僵尸试图破坏海龟蛋
- 启用原版生物 ticking(原:从不减缓远处生物) | 此设置控制远处生物是否与未加载模组(原版)游戏中一样进行 ticking。启用此项会减弱模组对你游戏 TPS 的提升效果,但可能修复生物 ticking 问题。
常见问题
这个模组能提高我的 TPS 吗?
可以,这个模组可以提高你的 TPS。
这个模组能提高我的 FPS 吗?
不能,这个模组无法提高你的 FPS。
为什么动态优化模式不将目标设定为低于 50ms?
Minecraft 以 50ms 为一刻(20 TPS)。如果(本地)服务器处理在 50ms 内完成,游戏会等待剩余时间。因此,任何低于 50ms 的优化都不会增加正常的每刻速度。该模组专注于防止每刻时间超过 50ms,因为更高的值会导致实体移动变慢。服务器负载越重,动态模式介入得越激进以维持 50ms。当服务器运行顺畅时,模组会减少其介入。
这个模组会影响刷怪塔吗?
简短回答:是的,但影响很小。
详细回答:是的,LazyAI 确实会影响刷怪塔的效率,但对吞吐量的影响微乎其微。在我的铁傀儡农场测试中,原版 Minecraft 产出 1023 个铁锭,而在 LazyAI 设置为激进时产出 979 个铁锭。差距约为 ~4.5%。
几点值得注意:
- 这是在激进设置下进行的测试,该设置影响最大。使用不那么激进的设置将进一步缩小差距。
- ~4.5% 的下降在正常游戏中不太可能被注意到。
- 结果可能因农场设计和服务器性能而异。
- 测试是在 LazyAI 版本 1.6.0 上完成的。
实际上,你不会察觉到刷怪塔效率的下降。
我需要哪个加载器?
你需要 Fabric
我安装了模组,但没有看到那么大的差异?
预览图片是在压力测试情况下拍摄的。也可能是你的模拟距离或此模组的 距离缩放 设置对于你的使用场景来说太高了。
配置文件在哪里?
.minecraft/config/lazy-ai.json
这个模组可以在服务器上安装吗?
可以,你可以在服务器上安装这个模组。该模组同时适用于服务器和客户端。原版客户端可以加入使用 LazyAI 的服务器。
这个模组可以在客户端上使用吗?
可以,你可以在客户端上使用这个模组。该模组同时适用于服务器和客户端。装有 LazyAI 的客户端可以加入没有 LazyAI 的服务器。
AI 优化类型和距离缩放是如何工作的?
见下方 ↓
AI 优化类型 和 距离缩放 是如何工作的?
此概述为简化说明。 本模组使用了额外的较小系统,但 AI 优化类型 和 距离缩放 是决定模组行为的两个主要系统。
本说明中显示的百分比和半径仅用于视觉参考,并不反映实际数值。
以下图片将作为视觉参考的基础:
AI 优化类型
此设置控制每个区域中生物 AI 刻减速度的激进程度。这些百分比代表剩余的原始原版 AI 活动量:
距离缩放
此设置控制范围区域边界相对于你的模拟距离和玩家位置的位置。
Overview
Lazy AI dynamically reduces the frequency and precision of mob AI calculations based on their distance from players. Mobs close to players behave normally, while those farther away update their goals, pathfinding, and other goals less often. This ensures smoother performance, especially in mob-heavy worlds.
Lazy AI bases its distance calculations of the simulation distance * distance scaling of your game
Performance difference
Lower ms -> better (target: 50ms or lower per tick)
Vanilla performance
Lazy AI performance
Using AI Optimization Type 'Dynamic' will dynamically switch between the three optimization modes based on TPS
| Minimal | Moderate | Agressive |
|---|---|---|
Comparison of Vanilla and LazyAI
TPS comparison in a mob crowded test world
TPS comparison in a giant villager trading hall
Features
- Distance-based AI scaling | Reduces AI updates for mobs that are far from players
- Pathfinding optimization | Simplifies A* path calculations at long distances
- Reduced goal frequency | Look, wander, and tempt goals run less often when distant
- Configurable behavior | Easily balance performance and gameplay through a simple config accessible through mod menu
- Server-wide improvement | Decreases tick load even on servers
Settings
- AI Optimization Type | This settings controls how aggressive the optimizations should be
- Distance Scaling | This setting controls what % range of your simulation distance is considered close and far range
- Mob Tempting Delay | This setting controls how much delay animals have to being tempted by an item
- Disable Zombie Egg Stomping | This setting controls the prevention of zombies wanting to destroy turtle eggs
- Enable Vanilla Mob Ticking (Previously: Never Slow Down Distant Mobs) | This setting controls if distant mobs should tick the same as in a unmodded (vanilla) game. Enabling this reduces the mod's TPS-boosting effect on your game, but can fix mob ticking issues.
FAQ
Can this mod increase my TPS?
Yes, this mod can improve your TPS.
Can this mod increase my FPS?
No, this mod cannot improve your FPS.
Why does the dynamic optimization mode not target below 50ms?
Minecraft runs on a 50ms tick cycle (20 TPS). If the (local) server processing finishes in under 50ms, the game waits for the remaining time. Consequently, any optimization below 50ms yields no increase in normal tick speed. The mod focuses on keeping tick times from exceeding 50ms, as higher values cause entities to move in slow motion. The heavier the (local) server load, the more aggressively the dynamic mode intervenes to maintain 50ms. When the (local) server runs smoothly, the mod scales back its intervention.
Does this mod affect mob farms?
Short awnser: Yes, but only a little bit.
Long awnser: Yes, LazyAI does affect mob farm efficiency, but the throughput impact is minimal. In testing with my iron golem farm, vanilla Minecraft yielded 1023 iron ingots, while with the LazyAI on the aggressive setting yielded 979 iron ingots. That's a difference of ~4.5%.
A few things worth noting:
- This was tested on the aggressive setting, which has the most impact. Using a less aggressive setting will reduce that gap further.
- A ~4.5% decrease is unlikely to be noticeable in normal gameplay.
- Results may vary depending on farm design and server performance.
- The testing were done on LazyAI version 1.6.0.
In practice, you won't notice the mob farm efficiency decrease.
What modloader do I need?
You need Fabric
I installed the mod, but didn't see as much difference?
The preview images are taken in a stress test situation. It can also be because your simulation distance or this mods distance scaling is set too high for your use case.
Where is the config located?
.minecraft/config/lazy-ai.json
Can this mod be used on a server?
Yes, you can use this mod on a server. The mod works on both the server and the client. Vanilla clients can join a server using LazyAI.
Can this mod be used on a client?
Yes, you can use this mod on a client. The mod works on both the server and the client. Clients with LazyAI can join servers without LazyAI.
How does the AI Optimization Type and Distance Scaling work?
See below ↓
How does the AI Optimization Type and Distance Scaling work?
This overview is a simplified explanation. This mod makes use of additional smaller systems, but AI Optimization Type and Distance Scaling are the two main systems that dictate how the mod behaves.
The percentages and radiuses shown in this explanation are for visual reference and do not reflect the actual numbers.
The following image will be used as a base for the visual references:
AI Optimization Type
This setting controls how aggressive mob AI ticks are reduced across each zone. The percentages represent how much of the original vanilla AI activity remains:
Distance Scaling
This setting controls where the range zone boundaries are positioned relative to your simulation distance and player location.
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
下载 LazyAI
- 改进了与多线程加载模组的兼容性
- 已更新至早期版本 26.4
- 略微提升了模组性能
- 略微降低了内存占用
- 修复了恶魂不发射火球的异常问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧