我目前正在开发新的模组 Voxelium,因此没有时间来修复 Rentities 的漏洞。请耐心等待——它将会非常精彩。
Rentities — GPU 实例化实体渲染
Minecraft 1.21.11 | Fabric | 需要 Sodium
⚠️ Alpha — 概念验证发布
这是首次公开发布。核心渲染系统已能正常工作并带来显著的性能提升,但已知存在若干视觉问题,将在后续更新中修复。请勿在未备份的重要世界中使用。
功能说明
原版 Minecraft 会为屏幕上的每个实体向 GPU 发起单独的绘制调用(draw call)。500 头牛意味着 500 次绘制调用。Rentities 拦截实体渲染循环,将同类型的全部实体合并为一次 GPU 实例化绘制调用,并通过 Shader Storage Buffer Object (SSBO) 上传位置、旋转和动画状态。所有骨骼动画均在自定义 GLSL 顶点着色器中计算——CPU 完全不参与任何动画运算。
基准测试
RTX 5070 · Minecraft 1.21.11 · Sodium 0.8.6 · Lithium · 渲染距离 20 · 视图中约 3000 个实体
| 配置 |
平均 FPS |
1% Low |
| Sodium + Lithium |
122 |
70 |
| Sodium + Lithium + Rentities |
311 |
145 |
平均 FPS 提升 155%。1% Low 提升 107%。
Rentities 与 Lithium 相辅相成:Lithium 降低 CPU 服务端刻开销,Rentities 降低 GPU 绘制调用开销。两者结合效果叠加。
运行要求
- NVIDIA GPU(GTX 10 系列或更高)
- Fabric Loader 0.17.2+
- Sodium 0.8.6
- Minecraft 1.21.11
可独立运行。不依赖 Nvidium,尽管两个模组兼容并可叠加使用。
游戏内设置
Sodium → 视频设置 → Rentities
| 选项 |
功能说明 |
| GPU Entity Batching |
主开关。即时生效,无需重新加入世界 |
| Entity Scan Mode |
ON = 提取并保存网格到磁盘。OFF = 从缓存加载。更改后需重新加入世界 |
| Mesh Cache |
显示磁盘上是否存在缓存文件 |
| Delete Mesh Cache |
清除缓存,以便在下一次加载世界时重新构建 |
已知问题 — 即将修复
此为概念验证版本。以下问题已知且正在积极处理中:
盔甲架渲染
无论在世界中如何放置或旋转,盔甲架始终朝向一个固定方向渲染。通过 /data 命令设置的姿态数据(倾斜的手臂、弯曲的腿、自定义姿态)会被完全忽略——它们始终以默认的站立姿势显示。这是当前姿态提取系统的已知限制。
实体朝向错误
部分实体显示的朝向与其在世界中实际面向的方向不符。当禁用 Rentities 并使用原版渲染时,同一实体可能呈现不同的朝向。这是一个正在调查的偏航/旋转计算错误。
动画仅为近似值
行走周期、待机动画和肢体运动可以工作,但与原版并非 1:1 对应。某些实体的肢体运动方式与原版渲染器相比看起来略有偏差。完全还原原版动画精度是计划中的未来改进项。
纹理朝向问题
在某些实体类型上,纹理可能出现镜像、翻转或应用到模型部件的错误侧面。这是网格提取管线中的 UV 坐标问题。
头部偏移
某些实体类型的头部相对于身体似乎略微旋转或偏移。
未扫描的实体显示为洋红色立方体
在构建网格缓存时不存在的任何实体类型都会显示为旋转的洋红色占位立方体。启用扫描模式并重新加入包含这些实体的世界即可修复。
不支持 Iris/光影
当 Iris 等光影模组激活时,由 Rentities 渲染的实体呈现无光照且扁平的效果。暂时在使用光影时禁用 Rentities。
尚不支持 AMD 和 Intel GPU
该模组检测 NVIDIA 显卡并在其他厂商设备上禁用自身。AMD/Intel 支持已在计划中。
计划中
- 修复盔甲架姿态读取
- 修复实体朝向错误
- 原版精度的动画
- 修复纹理 UV 方向问题
- 使用 GPU 端视锥剔除进行间接绘制调用
- 完全跳过批量实体的原版渲染状态分配
- 玩家皮肤渲染
- AMD 和 Intel 支持
- Iris 兼容性
常见问题
没有 Nvidium 也能工作吗?
是的,完全独立运行。
与 Nvidium 兼容吗?
是的,两者兼容。Nvidium 处理地形,Rentities 处理实体。
为什么在游戏设置中切换批处理开关会即时生效?
渲染器在运行时创建和销毁,无需重新加载世界。
为什么目前仅支持 NVIDIA?
AMD/Intel 支持即将到来。渲染代码本身使用标准 OpenGL 4.5——此限制仅在稳定性得到确认期间暂时存在。
考虑支持
Rentities 免费且开源。如果它提升了你的性能,并希望支持持续开发:
没有任何义务——享受它并分享它就已经足够了。
趣闻
名称 Rentities 源自 Re + Entities——以此致敬整个实体渲染管线从头重写的这一事实。它也听起来像 "re-entities",这正是本模组所做的:接管原版实体,并为它们提供一条根本不同的渲染路径。
处理全部 21 类动画的核心顶点着色器超过 500 行 GLSL 代码,并完全在你的 GPU 上运行。你的 CPU 完全不知道那些僵尸是如何移动的。
MIT 许可证 · BalancingLight · Minecraft 1.21.11
I am currently working on new mod called Voxelium so I'm not getting any time for fixing Rentities bugs. Please be patient — it will be a banger.
Rentities — GPU Instanced Entity Rendering
Minecraft 1.21.11 | Fabric | Requires Sodium
⚠️ Alpha — Proof of Concept Release
This is the first public release. The core rendering system works and delivers real performance gains, but several visual issues are known and will be fixed in future updates. Do not use on important worlds without backups.
What it does
Vanilla Minecraft issues a separate draw call to the GPU for every entity on screen. 500 cows means 500 draw calls. Rentities intercepts the entity render loop and batches all entities of the same type into one instanced GPU draw call, uploading positions, rotations, and animation state via a Shader Storage Buffer Object (SSBO). All per-bone animation is computed in a custom GLSL vertex shader — the CPU does no animation work at all.
Benchmarks
RTX 5070 · Minecraft 1.21.11 · Sodium 0.8.6 · Lithium · Render distance 20 · ~3000 entities in view
| Setup |
Avg FPS |
1% Low |
| Sodium + Lithium |
122 |
70 |
| Sodium + Lithium + Rentities |
311 |
145 |
+155% average FPS. +107% improvement in 1% lows.
Rentities and Lithium are complementary — Lithium reduces CPU server tick cost, Rentities reduces GPU draw call overhead. Together they compound.
Requirements
- NVIDIA GPU (GTX 10 series or newer)
- Fabric Loader 0.17.2+
- Sodium 0.8.6
- Minecraft 1.21.11
Works standalone. Does not require Nvidium, though both mods are compatible and stack together.
In-Game Settings
Sodium → Video Settings → Rentities
| Option |
What it does |
| GPU Entity Batching |
Master on/off toggle. Takes effect immediately without rejoining |
| Entity Scan Mode |
ON = extract and save meshes to disk. OFF = load from saved cache. Rejoin world after changing |
| Mesh Cache |
Shows whether a cache file exists on disk |
| Delete Mesh Cache |
Clears the cache so it gets rebuilt on next world load |
Known Issues — Will Be Fixed
This is a proof of concept release. The following are known and actively being worked on:
Armor stand rendering
Armor stands always render facing one fixed direction regardless of how they were placed or rotated in the world. Pose data set via /data commands (angled arms, bent legs, custom poses) is completely ignored — they always display in the default standing position. This is a known limitation of the current pose extraction system.
Entity facing direction
Some entities appear to face the wrong direction compared to where they are actually looking in the world. When you disable Rentities and use vanilla rendering, the same entity may be facing a different direction. This is a yaw/rotation calculation bug being investigated.
Animations are approximate
Walk cycles, idle animations, and limb movement work but are not 1:1 with vanilla. Some entities move their limbs in ways that look slightly off compared to the vanilla renderer. Full vanilla animation accuracy is a planned future improvement.
Texture facing issues
On some entity types, textures appear mirrored, flipped, or applied to the wrong side of a model part. This is a UV coordinate issue in the mesh extraction pipeline.
Head offset
The head on some entity types appears slightly rotated or offset from where it should be relative to the body.
Unscanned entities show as magenta cubes
Any entity type that was not present when the mesh cache was built will appear as a spinning magenta placeholder cube. Enable Scan Mode and rejoin a world containing those entities to fix it.
No Iris/shader support
Entities rendered by Rentities appear unlit and flat when shader mods like Iris are active. Disable Rentities when using shaders for now.
AMD and Intel GPUs not yet supported
The mod detects NVIDIA and disables itself on other vendors. AMD/Intel support is planned.
Planned
- Fix armor stand pose reading
- Fix entity facing direction
- Vanilla-accurate animations
- Fix texture UV orientation issues
- Indirect draw calls with GPU-side frustum culling
- Skip vanilla render state allocation for batched entities entirely
- Player skin rendering
- AMD and Intel support
- Iris compatibility
FAQ
Does this work without Nvidium?
Yes, completely standalone.
Does this work with Nvidium?
Yes, they are compatible. Nvidium handles terrain, Rentities handles entities.
Why does toggling batching off/on in settings work instantly?
The renderer is created and destroyed at runtime without requiring a world reload.
Why NVIDIA only right now?
AMD/Intel support is coming. The rendering code itself uses standard OpenGL 4.5 — the restriction is temporary while stability is confirmed.
Consider Supporting
Rentities is free and open source. If it helped your performance and you want to support continued development:
No obligation — enjoying it and sharing it is already more than enough.
Fun Fact
The name Rentities comes from Re + Entities — a nod to the fact that the entire entity rendering pipeline was rewritten from the ground up. It also sounds like "re-entities", which is exactly what this mod does: takes vanilla entities and gives them a fundamentally different rendering path.
The core vertex shader that handles all 21 animation categories is 500+ lines of GLSL and runs entirely on your GPU. Your CPU has no idea how any of those zombies are moving.
MIT License · BalancingLight · Minecraft 1.21.11
评论 0
登录后参与评分
还没有评论,来抢沙发吧