优化方块实体 (OBE)
OBE 是一个完全在客户端运行的模组,它能显著提升方块实体的渲染速度,不仅如此!
你不会丢失动画效果,此模组会保留像箱子和潜影盒这样的动画方块实体的动画。它还支持 EMF 和 ETF,这意味着它与 FA: Objects 兼容!
你也应该看看 Better Block Entities,它是第一个在 1.21+ 版本中优化方块实体的模组,并且做得非常好。两个模组的运作方式不同,但它给了我一些灵感和一两个巧妙的技巧。
工作原理
此模组将支持的方块实体像普通方块一样进行渲染,这意味着它们会被合并到地形网格中。由于渲染地形比渲染实体快得多,因此这带来了巨大的性能提升。为了保持动画效果,当方块实体静止时,它们仅通过地形进行渲染;否则,会通过原版渲染器进行渲染。
特性
- 提高 FPS:巨大的性能提升,其效果随可见方块实体的数量增加而扩展。
- 改善方块实体的光照:现在它们支持平滑光照和环境光遮蔽。
- 扩展渲染距离:可以从更远的地方看到方块实体。
- 配置选项:每个方块实体的优化都可以切换,环境光遮蔽也是如此。
- 改进 LOD(细节层次):Distant Horizons 和 Voxy 会更准确地渲染方块实体。
- 可自定义非网格化渲染距离:为未合并到地形的方块实体设置自己的渲染距离,覆盖原版的 64 格默认值。
性能表现
FPS:470 OBE / 370 BBE / 50 Sodium only
 |
 |
 |
性能测试运行于 Minecraft 26.1.2,使用 OBE 1.2.6、BBE 1.3.6 和 Sodium 0.9.2,在 FHD 分辨率下,硬件为 RTX 5060 笔记本、AMD Ryzen 7 260 w 以及 16GB DDR5 RAM。场景中包含 18000 个箱子。
为什么制作此模组
已经存在类似的模组,例如:
- BBE,但它需要 Sodium 才能运行,在 Neoforge 上不可用(至少在 OBE 开发期间如此),并且大幅修改了 Minecraft 的方块实体渲染管线
- EBE,但遗憾的是它已不再更新,且在 Neoforge 上不可用
这两个模组都非常棒,开发者们做了出色的工作,但我想要制作一个满足以下条件的模组:
- 已更新并适用于大多数现代 Minecraft 版本
- 侵入性更低,这意味着与其他模组的兼容性更好,且不绑定于特定版本的 Sodium
- 同时支持 Neoforge 和 Fabric
- 包含支持模组化方块实体的方法
所有已优化的方块实体列表
已优化的方块实体
- 箱子 (Chests)
- 潜影盒 (Shulker boxes)
- 告示牌 (Signs)
- 装饰陶罐 (Decorated pots)
- 头颅(无自定义纹理¹)(Skulls (with no custom texture¹))
- 床 (Beds)
- 傀儡铜像 (Copper golems)
- 钟 (Bells)
- 旗帜(仅限木制旗杆,不包括旗帜本身,因为那样会阻止动画)(Banners (only the wooden post, not the flag as that would prevent the animation))
- 信标 (Beacons)
- 讲台 (Lecterns)
- 营火 (Campfires)
- 书架 (Shelves)
- 可刷新的方块 (Brushable blocks)
- 刷怪笼 (Spawners)
- 保险库 (Vaults)
¹:使用 此资源包 也可以优化来自 Hypixel Skyblock 的部分带有自定义纹理的头颅。
模组化方块实体优化
OBE 还优化了以下模组的方块实体:
故障排除
方块实体不可见或重复出现:
仅原版、Indigo、Sodium(Forge 1.20.1 上的 Embeddium)、Nvidium 和 VulkanMod 渲染管线得到完全支持。使用其他渲染管线(如 Optifine、Embeddium、Optifabric 等)时可能会出现问题的情况下,建议使用 OBE 的配置界面禁用导致问题的 OBE 优化功能。
整合包
欢迎随意将此模组包含在你的任何整合包中,告诉我一声会很棒,但这并非强制要求。
Optimized Block Entities (OBE)
OBE is a fully client side mod that significantly improves the rendering speed of block entities but not just that!
You won't lose animations, this mod keeps the animations of animated block entities likes chest and shulker boxes, it also supports EMF and ETF, which means it is compatible with FA: Objects!
You should also check out Better Block Entities, it was the first mod to optimize block entities on 1.21+ and did that very well. Both mods do not work in the same way, but he gave me some inspiration and 1 or 2 clever tricks.
How it works
This mod renders supported block entities just like any other block, this means they are meshed into the terrain and rendering terrain is much faster than rendering entities so it gives a HUGE performances boost. To keep animations, they are only rendered through the terrain when they are static, otherwise it goes through the vanilla renderer.
Features
- Improved FPS: Huge performance boost that scales with the number of block entities visible.
- Better lighting on block entities: they now support smooth lighting and ambient occlusion.
- Extended render distance: block entities can be seen from a lot further away.
- Config: Every block entity optimization can be toggled, same for the ambient occlusion.
- Improved LODs: Distant Horizons and Voxy will render block entities more accurately.
- Customizable non-meshed render distance: Set your own render distance for non-meshed block entities, overriding Vanilla's 64 blocks default.
Performances
FPS: 470 OBE / 370 BBE / 50 Sodium only
 |
 |
 |
Performance tests ran on Minecraft 26.1.2 with OBE 1.2.6, BBE 1.3.6 and Sodium 0.9.2 in FHD on a RTX 5060 laptop, an AMD Ryzen 7 260 w and 16Go of DDR5 RAM. 18000 chests.
Why
Mods like this already exists like:
- BBE, but it requires Sodium to run, isn't available on Neoforge (at least not at the time of OBE development) and heavily modifies Minecraft's block entity rendering pipeling
- EBE, but it is sadly not updated anymore and isn't available on Neoforge
Both are awesome, the developers did great work but I wanted to make one that:
- Is updated and available on most modern Minecraft versions
- Is less intrusive, which means better compatibility with other mods and not being tied to a single Sodium version
- Is available on Neoforge as well as Fabric
- Includes a way to support modded block entities
List of all optimized block entities
Optimized block entities
- Chests
- Shulker boxes
- Signs
- Decorated pots
- Skulls (with no custom texture¹)
- Beds
- Copper golems
- Bells
- Banners (only the wooden post, not the flag as that would prevent the animation)
- Beacons
- Lecterns
- Campfires
- Shelves
- Brushable blocks
- Spawners
- Vaults
¹: Some skulls with custom textures from Hypixel's Skyblock can also be optimized by using this resource pack
Modded block entities optimizations
OBE also optimizes block entities from the following mods:
Trouble shooting
Invisible or duplicate block entities:
Only vanilla, Indigo, Sodium (Embeddium on forge 1.20.1), Nvidium and VulkanMod rendering pipelines are fully supported, issues may happen with other ones like Optifine, Embeddium, Optifabric etc... in that case it is recommended to disable the OBE optimizations causing the issues using OBE's config screen.
Modpacks
Feel free to include this mod in any of your modpacks, telling me would be nice but is not mandatory.
评论 0
登录后参与评分
还没有评论,来抢沙发吧