本模组旨在减少 Create 模组方块实体庞大的且无意义的 渲染边界。
你可以使用命令 /neoforge debug_blockentity_renderbounds true 来查看 NeoForge 方块实体的渲染边界。
它还重构了部分方块实体的 边界缓存。
这是一个相当小的优化,但在大型机械结构和大型机器区域中,它可能会带来显著差异。
我们目前支持:
- 机械臂
- 传送带
- 链式传送带
- 工厂面板
- PSI & 部署器
- 滚轮
- 青蛙端口
什么是渲染边界?
通常,为了优化性能,所有位于屏幕后方或外部的方块都不会被渲染,以避免不必要的计算。
对于普通方块,此边界设置为 3x3 的区域,但对于方块实体,这是可定制的。
原因很简单:渲染比单个方块更大的物体。例如,链式传送带需要更大的渲染边界框来处理链条连接。
问题在于,Create 模组很多时候遵循“宁大勿小”的原则,从而过度扩大了整个区域。这导致即使大部分方块实体根本不可见,它们仍然会被渲染。
渲染边界缓存
边界框并非每帧生成,因为方块仅在特定事件发生时才需要更改其边界框。
本模组还对此进行了优化,移除了部分方块(如传送带)不必要的边界框重载。在此之前,这些方块会每隔一个游戏刻(每秒 20 次)重新加载一次边界框。
现在,它们仅在方块被破坏并替换时才更新,从而减少了卡顿。
This mod aims to reduce enormous and nonsense render bounds for create block entities.
You can check neoforge block entities render bounds with this command /neoforge debug_blockentity_renderbounds true
It also reworks some block entities render bounds caching
It's a pretty small optimization, but in large contraptions and big machine areas, it can make the difference.
We currently support:
- Mechanical Arms
- Belts
- Chain Conveyors
- Factory Panels
- PSI & Deployers
- Rollers
- Frog Ports
What are render bounds?
Usually, to optimize performance, all blocks that are behind/outside your screen are not rendered to avoid useless computations.
In blocks, this bound is set to a 3x3 area, but in block entities, this is customizable.
The reason? Simple, render things that are bigger than a block. For example, Chain Conveyors need a larger render bounding box for chain connections.
The thing is, most times create goes by "better larger" and just inflates the whole area. This makes most of your block entities get rendered even though they are not even visible.
Render Bounds Caching
The bounding box is not generated every frame, since the block only needs to change his bounding box on some precise events.
This mod also optimizes this, removing useless bounding box reloading for some blocks (Belts) which before reloaded their bounding box EVERY GAME TICK (20 times per second).
Now they only update if the block is broken and replaced, reducing the lag.
评论 0
登录后参与评分
还没有评论,来抢沙发吧