优化
ImmediatelyFast 通常通过自定义缓冲区实现来优化所有立即模式渲染,它会以更高效的方式批量处理绘制调用并将数据上传至 GPU。
以下立即模式渲染代码部分已被优化:
- 实体
- 方块实体
- 粒子
- 文本渲染
- GUI/HUD
- 其他模组的立即模式渲染
它还对原版渲染代码进行了针对性优化,以使其运行得更快。
以下渲染代码部分通过更高效的实现得到了优化:
- 地图渲染
- HUD 渲染
- 文本渲染
性能
以下是一些该模组优化效果尤为出色的领域的性能对比:
如果表格中列出了其他模组,这意味着本模组也会优化游戏的那一部分。
测试硬件:Ryzen 5 1600,32GB DDR4,GTX 1060
FPS 数值来自外部工具(此处为 MSI Afterburner),并取数秒内的平均值。
如果你决定自行测试,请记住 ImmediatelyFast 只能在你的 CPU 成为瓶颈的场景下提升 FPS(如果你的 GPU 不算老旧或你使用了非常繁重的光影,这很可能是你的情况)。
较慢的 CPU 会比非常快的 CPU 从该模组中获益更多。
实体渲染
一般来说,在繁忙的服务器上 FPS 应能提升约 2 倍。[使用 IF 1.1.7 在 1.19.3 上测试]
在屏幕上的 3x3 方块区域内生成 1000 头牛的 Spigot 服务器上测试。
| 其他模组 | 未使用 ImmediatelyFast | 使用 ImmediatelyFast | 提升 |
|---|---|---|---|
| 无 | 16 FPS | 60 FPS | 3.75x |
| Sodium | 21 FPS | 82 FPS | 3.90x |
| Iris 和 Sodium | 60 FPS | 76 FPS | 1.27x |
地图渲染
通常情况下,当屏幕上有大量地图时,FPS 应提升约 5 倍。[使用 IF 1.1.1 在 1.19.3 上测试]
在装有 Image2Map 模组的 Fabric 服务器上测试,屏幕上约有 930 张地图。
| 其他模组 | 未使用 ImmediatelyFast | 使用 ImmediatelyFast | 提升 |
|---|---|---|---|
| 无 | 50 FPS | 310 FPS | 6.20x |
| Sodium | 47 FPS | 320 FPS | 6.81x |
HUD 渲染
通常情况下,在几乎所有场景中 FPS 应提升约 40%。[使用 IF 1.1.7 在 1.19.3 上测试]
在 Spigot 服务器上测试,屏幕上显示不同的 HUD 元素(计分板、药水效果叠加层、Boss 栏、已填充聊天栏、额外生命值、完整快捷栏)。
| 其他模组 | 未使用 ImmediatelyFast | 使用 ImmediatelyFast | 提升 |
|---|---|---|---|
| 无 | 250 FPS | 380 FPS | 1.52x |
| Sodium | 335 FPS | 630 FPS | 1.88x |
| Exordium 和 Sodium | 740 FPS | 840 FPS | 1.14x |
文本渲染
通常情况下,当周围有大量告示牌或全息文字时,FPS 应提升约 2 倍。[使用 IF 1.1.7 在 1.19.3 上测试]
在 Spigot 服务器上测试,屏幕上有 200 个告示牌(填充了文字)。
| 其他模组 | 未使用 ImmediatelyFast | 使用 ImmediatelyFast | 提升 |
|---|---|---|---|
| 无 | 70 FPS | 125 FPS | 1.79x |
| Sodium | 110 FPS | 300 FPS | 2.73x |
方块实体渲染
通常情况下,当周围有大量方块实体时,FPS 应提升约 20%。[使用 IF 1.1.7 在 1.19.3 上测试]
在 Spigot 服务器上测试,屏幕上有 400 个箱子。
| 其他模组 | 未使用 ImmediatelyFast | 使用 ImmediatelyFast | 提升 |
|---|---|---|---|
| 无 | 170 FPS | 205 FPS | 1.20x |
| Sodium | 315 FPS | 410 FPS | 1.30x |
兼容性
ImmediatelyFast 在设计上尽量减少对模组的干扰。 它应该能与绝大多数甚至全部模组和整合包正常配合使用。
已知的不兼容项:
- OptiFabric / OptiFine
- 大多数闭源“客户端”,如 LunarClient 和 LabyMod
如果你遇到任何问题,请在 Issue Tracker 上报告。
配置
ImmediatelyFast 有一个配置文件,位于你的 Minecraft 实例的 config 文件夹中。大多数选项应保持默认值,但有些选项可以调整以提升性能或兼容性。
font_atlas_resizing:增大字体图集纹理的尺寸。这能提升使用高分辨率字体或自定义服务器字体时的性能。map_atlas_generation:将地图纹理放入单个纹理而非多个纹理中。这在屏幕上有大量地图时能提升性能。hud_batching:通过减少绘制调用来提升 HUD 渲染性能。如果你遇到 HUD 元素相关的问题,请尝试禁用此优化。fast_text_lookup:在渲染文本字符之间缓存一些数据。这在渲染大量文本时能略微提升性能。avoid_redundant_framebuffer_switching:此优化减少了在世界中渲染许多不同内容(实体、粒子、方块实体等)或 HUD 时的帧缓冲切换次数,从而提升 FPS。experimental_disable_error_checking:禁用 OpenGL 错误检查。这在某些系统上可能提升性能,但启用后可能导致难以调试的问题。experimental_disable_resource_pack_conflict_handling:控制 ImmediatelyFast 是否应扫描资源包中不兼容的核心光影修改,以禁用部分冲突的优化。禁用此项可强制启用优化,即使它们可能导致某些资源包出现画面问题。experimental_sign_text_buffering:缓存告示牌上的文字,而非每帧重新渲染。可能导致高分辨率或自定义字体出现问题。experimental_screen_batching:通过减少绘制调用来提升部分游戏内界面渲染的性能。
开发者 API
你可以在此处阅读最新版本的 API 文档。
合作伙伴
Kinetic Hosting 以极其实惠的价格提供配备优秀硬件的服务器!如果你想享受这些优惠,请访问 kinetichosting.com。
YourKit 以创新的智能工具支持开源项目, 用于监控和分析 Java 和 .NET 应用程序。 YourKit 是 YourKit Java Profiler、 YourKit .NET Profiler 和 YourKit YouMonitor 的开发者。
感谢 sydist 制作图标!
ImmediatelyFast
ImmediatelyFast is an open source Minecraft mod which improves the immediate mode rendering performance of the client.
It is designed to be lightweight and compatible with other mods.
Optimizations
ImmediatelyFast generally optimizes all immediate mode rendering by using a custom buffer implementation which batches
draw calls and uploads data to the GPU in a more efficient way.
The following parts of the immediate mode rendering code are optimized:
- Entities
- Block entities
- Particles
- Text rendering
- GUI/HUD
- Immediate mode rendering of other mods
It also features targeted optimizations where vanilla rendering code is being changed in order to run faster.
The following parts of the rendering code are optimized with a more efficient implementation:
- Map rendering
- HUD rendering
- Text rendering
Performance
Here are some performance comparisons of areas the mod optimizes particularly well:
If other mods are listed in the table this means that this mod also optimizes that part of the game.
Test Hardware: Ryzen 5 1600, 32GB DDR4, GTX 1060
FPS Numbers were taken from external tools (in this case MSI Afterburner) and averaged over a couple of seconds.
If you decide to test this yourself keep in mind that ImmediatelyFast can only improve FPS in a scenario where your CPU
is the bottleneck (Most likely the case if your GPU isn't ancient or you use very heavy shaders).
Slower CPUs will benefit more from this mod than really fast CPUs.
Entity Rendering
Generally FPS should be around 2x higher on busy servers. [Tested using IF 1.1.7 on 1.19.3]
Tested on a spigot server with 1000 cows in a 3x3 box on screen.
| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---|---|---|---|
| None | 16 FPS | 60 FPS | 3.75x |
| Sodium | 21 FPS | 82 FPS | 3.90x |
| Iris and Sodium | 60 FPS | 76 FPS | 1.27x |
Map Rendering
Generally FPS should be around 5x higher when there are many maps on screen. [Tested using IF 1.1.1 on 1.19.3]
Tested on a fabric server with the Image2Map mod and around 930 maps on screen.
| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---|---|---|---|
| None | 50 FPS | 310 FPS | 6.20x |
| Sodium | 47 FPS | 320 FPS | 6.81x |
HUD Rendering
Generally FPS should be around 40% higher in almost all scenarios. [Tested using IF 1.1.7 on 1.19.3]
Tested on a spigot server with different HUD elements on screen (Scoreboard, Potion effect overlay, Bossbars, Filled Chat, Extra hearts, Full Hotbar).
| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---|---|---|---|
| None | 250 FPS | 380 FPS | 1.52x |
| Sodium | 335 FPS | 630 FPS | 1.88x |
| Exordium and Sodium | 740 FPS | 840 FPS | 1.14x |
Text Rendering
Generally FPS should be around 2x higher when there are many signs or holograms around you. [Tested using IF 1.1.7 on 1.19.3]
Tested on a spigot server with 200 signs (Filled with text) on screen.
| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---|---|---|---|
| None | 70 FPS | 125 FPS | 1.79x |
| Sodium | 110 FPS | 300 FPS | 2.73x |
Block-Entity Rendering
Generally FPS should be around 20% higher when there are many block entities around you. [Tested using IF 1.1.7 on 1.19.3]
Tested on a spigot server with 400 chests on screen.
| Other mods | Without ImmediatelyFast | With ImmediatelyFast | Improvement |
|---|---|---|---|
| None | 170 FPS | 205 FPS | 1.20x |
| Sodium | 315 FPS | 410 FPS | 1.30x |
Compatibility
ImmediatelyFast is structured to interfere with mods as little as possible. It should work fine with most if not all mods and modpacks.
Known incompatibilities:
- OptiFabric / OptiFine
- Most closed source "clients" like LunarClient and LabyMod
If you encounter any issues, please report them on the Issue Tracker.
Config
ImmediatelyFast has a config file which can be found in the config folder of your Minecraft instance. Most options should be left at their default values, but some may be tweaked to improve performance or compatibility.
font_atlas_resizing: Increases the sizes of the font atlas textures. This improves performance with high resolution or custom server fonts.map_atlas_generation: Puts the map textures into a single texture instead of multiple textures. This improves performance when many maps are on screen.hud_batching: Improves the performance of the HUD rendering by submitting less draw calls. If you experience issues with HUD elements, try disabling this optimization.fast_text_lookup: Caches some data between rendering text characters. This slightly improves performance when rendering a lot of text.avoid_redundant_framebuffer_switching: This optimization reduces the number of framebuffer switches when rendering many different things in the world (entities, particles, block entities, ...) or the HUD to increase FPS.experimental_disable_error_checking: Disables OpenGL error checking. This may improve performance on certain systems, but can cause hard to debug issues if enabled.experimental_disable_resource_pack_conflict_handling: Controls if ImmediatelyFast should scan resource packs for incompatible core shader modifications in oder to disable some conflicting optimizations. This can be disabled to force optimizations even if they may cause graphical issues with certain resource packs.experimental_sign_text_buffering: Buffers text on signs instead of re-rendering it every frame. May cause issues with high resolution or custom fonts.experimental_screen_batching: Improves the performance of some in-game screens rendering by submitting less draw calls.
Developer API
You can read the latest version of the API docs here.
Partners
Kinetic Hosting offers extremely affordable deals on servers with very good hardware! If you'd like to cash in on the good deals visit kinetichosting.com.
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.
Credits to sydist for making the logo!
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ImmediatelyFast
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复了来自 Iron's Spells 'N Spellbooks 的魔法冷却渲染问题
- 修复了 Cosmetica 屏幕的渲染问题
- 修复了 Iron's Spells 'N Spellbooks 法术冷却时间的渲染
- 修复了 Cosmetica 界面的渲染
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧