优化方块实体 (OBE)
OBE 是一个完全客户端的模组,它显著提升了方块实体的渲染速度,但不仅如此!
你无需担心动画丢失,此模组保留了像箱子和潜影盒这类具有动画效果的方块实体的动画,它还支持 EMF 和 ETF,这意味着它与 FA: Objects 兼容!
你也应该看看 Better Block Entities,它是首个在 1.21+ 版本中优化方块实体的模组,并且做得非常出色。两个模组的运作方式不同,但它给了我一些灵感和一两个巧妙的技巧。
工作原理
此模组将受支持的方块实体像其他普通方块一样进行渲染,这意味着它们会被合并到地形网格中,而渲染地形比渲染实体要快得多,因此带来了巨大的性能提升。为了保留动画,当方块实体处于静止状态时,它们仅通过地形进行渲染;否则,它们会通过原版渲染器处理。
功能
- 提高 FPS:巨大的性能提升,且随可见方块实体数量的增加而线性增长。
- 改善方块实体的光照:现在支持平滑光照和环境光遮蔽(AO)。
- 更好的渲染距离:方块实体可以在更远的距离被看到。
- 配置选项:每个方块实体的优化都可以单独切换,环境光遮蔽也是如此。
- 改进 LODs:来自 Distant Horizons 和 Voxy 的 LOD 渲染将更加准确地呈现方块实体。
性能表现
FPS: 470 OBE / 370 BBE / 50 Sodium only
 |
 |
 |
性能测试运行于 Minecraft 26.1.2,使用 OBE 1.2.6、BBE 1.3.6 和 Sodium 0.9.2,全高清分辨率,硬件为 RTX 5060 笔记本、AMD Ryzen 7 260 w 及 16GB DDR5 内存。场景包含 18000 个箱子。
为什么开发此模组
类似这样的模组已经存在,例如:
- BBE,但它需要 Sodium 才能运行,在 Neoforge 上不可用(至少在 OBE 开发时如此),并且大幅修改了 Minecraft 的方块实体渲染管线
- EBE,但不幸的是它已不再更新,且在 Neoforge 上不可用
这两个模组都非常棒,开发者们做了出色的工作,但我想要制作一个具备以下特点的模组:
- 保持更新,并支持大多数现代 Minecraft 版本
- 侵入性更低,意味着与其他模组的兼容性更好
- 同时支持 Neoforge 和 Fabric
- 包含支持模组化方块实体的方法
所有已优化的方块实体列表
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
¹: 部分来自 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.
- Better 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: LODs from Distant Horizons and Voxy will render block entities more accurately.
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
- 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
登录后参与评分
还没有评论,来抢沙发吧