简介
lucid-lite 是 lucid 的轻量版本,更注重性能与兼容性。此模组不会阻止原版睡眠机制,而是计算跳过的时间量,并以更快的速率更新方块实体,以弥补丢失的时间。
性能
该模组对性能的影响取决于用户自行设置。默认情况下,该模组每刻(tick)消耗的时长不超过 10ms。你可以通过在 Minecraft 实例的配置文件夹中创建一个名为 lucid-lite.config 的文件,并在其中写入 tickBudget: x 来调整此设置,其中 x 表示该模组每刻可用于更新方块实体的毫秒数。将此值设为 0 时,该模组将使用其所需的全部时间,这可能导致明显的卡顿,但在单人游戏中(因为你正在睡觉)通常不易察觉,而在服务器上可能会引发问题。
已知问题
目前暂无已知问题。
兼容性
该模组通过向 ServerWorld 类的 tick 方法注入代码实现功能,不使用重定向(redirects)。预计兼容所有情况;若出现不兼容,很可能并非该模组的过错。
What is it?
lucid-lite is the lite version of lucid that caters more towards performance and compatibility. This version of the mod does not prevent vanilla sleep, instead it calculates how much time was skipped and ticks block entities at a faster rate to make up for the lost time.
Performance
How much this mod impacts performance is up to you, the user. By default the mod will consume no more than 10ms of time each tick, this can be configured by placing a file called lucid-lite.config in your minecraft instance config folder with the content tickBudget: x where x is how many ms per tick the mod can spend ticking block entities. With this value set to 0, the mod will use as much time as it wants which can result in a large lag spike that should go pretty much unnoticed in singleplayer (as you are sleeping) but may cause problems for servers.
Known Issues
None that I know of.
Compatibility
The mod consists of 2 injects into the tick method of the ServerWorld class, no redirects. Hopefully compatible with everything, if it is not, it is likely not this mods fault.
评论 0
登录后参与评分
还没有评论,来抢沙发吧