BadOptimizations
一系列大多是微小的优化,积少成多,效果显著!
它有什么作用?
多个方面:
- 避免更新光照贴图
更新光照贴图纹理是客户端 tick 中最耗时的部分之一。在每个 tick 中,客户端会进行向量运算来计算方块和天空的光照贴图,然后将新纹理上传到 GPU。然而,如果没有任何影响方块亮度的因素发生变化,这完全可以避免并缓存。如果没有任何改变方块亮度的因素(例如伽马滑块、药水效果、维度)发生变化,此模组将取消光照贴图更新。
- 不需要时不执行调试逻辑
Minecraft 有四个可通过调试服务器激活的调试渲染器:蜜蜂、游戏事件、游戏测试和村民 AI。即使没有任何需要处理的内容,这些调试渲染器的逻辑仍会执行。此模组仅在启用调试且服务器有数据需要处理时才执行它们。
- 天空颜色计算优化(1.21.10 及以下)
Minecraft 每帧使用三次颜色采样器来计算当前天空颜色。此函数循环 216 次以考虑周围的生物群系,即使所有周围生物群系完全相同或具有相同的天空颜色。此模组使颜色采样器仅在你处于具有不同天空颜色的生物群系之间时使用,并每 tick 缓存一次。否则,将使用更短、更简单、更快的天空颜色计算。
至少这是其中几项。如果需要,你可以在配置文件中禁用任何优化。
它能带来多大帮助?
取决于你的系统和运气,但在我自己的 PC 上,RTX 3060、intel i7 12700 和 Fabulously Optimized 上分配 4GB 内存:
没有提示框时,从 1926-1955 FPS:
到 2008-2023 FPS:
有提示框时,从 1351-1384 FPS:
到 1414-1458 FPS:
我的模组不兼容!
你可以将你的模组标记为与特定的 BadOptimizations 选项不兼容。如果你的模组存在,BadOptimizations 将自动禁用你指定的特定选项。你还可以添加钩子,告诉 BadOptimizations 何时需要更新光照贴图或天空颜色,而不是为缓存优化添加硬性不兼容。
依赖项?
无。
(如果你喜欢的话,CurseForge 上也有。)
如何安装 BadOptimizations
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.19–26.3 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file BadOptimizations-2.4.1-26.3-forge.jar (60 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: BadOptimizations should be in the list.
BadOptimizations works on the player’s side only: there is no need to install it on a server.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 26.3 | NeoForge | 26.360.1 KB 1 | ||
| 26.3 | Fabric | 26.359.3 KB 161 | ||
| 1.21.1 | Fabric, NeoForge | 1.21.1277 KB 63 | — | |
| 1.21 | Fabric, NeoForge | 1.2189.2 KB | — | |
| 1.20.4 | Fabric, NeoForge | 1.20.4299 KB 5 | — | |
| 1.20.1 | Fabric, Forge | 1.20.1449 KB 89 | — | |
| 1.19.4 | Fabric, Forge | 1.19.4413 KB 3 | — | |
| 1.19.2 | Fabric, Forge | 1.19.2411 KB 6 | — |
评价
成为第一个评价 BadOptimizations 的人

