Sable:Everything Everywhere All at Once
Sable: EEAAO 是对 Sable 子层级加载系统的一项轻量级修改,旨在简化子层级的强制加载。它设计用于配合 Distant Horizons 或 voxy 等进一步增加渲染距离的模组,以及 SSRD 使用。
没有该模组时,Sable 仅在周围区块加载时保持子层级处于加载状态;当区块卸载时,子层级会被冻结并存储到磁盘上。
EEAAO 做了两处不同的处理;
1. 它会保持所有子层级处于加载状态。这包括你的飞船、汽车,甚至是第一个带有把手的单块方块。它会始终加载所有这些子层级。
2. 安装后,任何现有的子层级都将被“唤醒”并解除冻结。这包括那些位于玩家从未访问过的世界区域的子层级。
配置
你可以通过 /gamerule forceloadAllSublevels true/false 来开启或关闭此模组(默认值:true)
命令完成所需的时间取决于世界大小,因为它需要读取磁盘上 Sable 保存的子层级数据以查找世界中的每个子层级。平均耗时约为 5-10 秒。
将 gamerule 设置为 false 会将那些仅由自身维持加载状态的子层级重新置入休眠状态。
重要提示
你现在可能会想,“嘿,这对性能不好吗?” 是的,但 仅当你世界中散布着许多复杂的子层级,或者到处都有大量子层级时才会如此。此模组假设你拥有非常强大的计算机或服务器,即便如此,我也建议将子层级数量保持在最低限度以保留性能。
技术细节
EEAAO 仅使用 Sable 的公共 API,不包含任何 mixin,因此它应该能在 Sable 更新后继续正常工作。
该模组在创建时为每个子层级分配一个持久的加载票证,并扫描 Sable 自身的区域存储(<dimension>/sublevels/)以定位未被加载的子层级(包括那些从未被加载过的子层级),并通过强制加载它们的区块来使 Sable 通过其正常路径唤醒这些子层级。该扫描过程跨刻进行节流处理,而不是一次性完成,这就是为什么它需要几秒钟而不是完全冻结服务器的原因。不客气 :)
Sable: Everything Everywhere All at Once
Sable: EEAAO is a lightweight modification to Sable's sub-level loading system, intending to simplify forceloading sub-levels. It's designed to be used with a further render distance mod like Distant Horizons or voxy, and SSRD
Without the mod, Sable only keeps sub-levels loaded while the chunks around it are loaded, and when the chunks are un-loaded, the sub-levels get frozen and stored on disk.
EEAAO does two things differently;
1. It keeps all sub-levels loaded. This could be your airship, a car, or even the single block you first made with a handle on it. It loads all of them, always.
2. When installed, any existing sub-levels will be "woken", and un-frozen. This includes ones in parts of the world no player has ever visited.
Configuration
You can toggle the mod on or off with /gamerule forceloadAllSublevels true/false (Default: true)
The command will take a few seconds to finish depending on world size, as it reads through Sable's saved sub-level data on disk to find every sub-level in the world. The average seems to be about 5-10 seconds.
Setting the gamerule to false will put any sub-levels in chunks that aren't being loaded by anything but themselves back to sleep.
Important
Now you may be thinking, "hey, wouldn't that be bad for performance?" Yes, but only if you have many complicated sub-levels scattered around your world, or just a ton of them everywhere. This mod assumes you have a very beefy computer or server, and even then I would recommend keeping the sub-level count to a minimum to preserve performance.
Technical details
EEAAO uses only Sable's public API with no mixins so it should keep working across Sable updates.
The mod gives every sub-level a persistent loading ticket on creation, and also scans Sable's own region storage (<dimension>/sublevels/) to locate sub-levels that aren't being loaded (including ones that have never been loaded), and force-loading their chunks so Sable wakes them through its normal path. That scan is throttled across ticks rather than done all at once, which is why it takes a few seconds instead of entirely freezing the server. You're welcome
评论 0
登录后参与评分
还没有评论,来抢沙发吧