PackForge
PackForge 是一款客户端侧的 Fabric 模组,旨在帮助大型资源包加载得更快。
它主要设计用于大型服务器资源包,例如由 ItemsAdder、ModelEngine 以及其他重度定制的资源包生成的资源包。
Minecraft 在加载过程中通常需要对资源包进行多次搜索。对于非常大的资源包来说,这会导致加载屏幕耗时过长,特别是当资源包包含数千个模型、纹理、声音或 JSON 文件时。
PackForge 通过在加载时为资源包构建一个快速内部索引来改善这一状况。此后,Minecraft 可以更快地查找文件,而无需反复遍历整个资源包。
PackForge 的功能
- 加快大型压缩资源包的加载和重载速度
- 有助于减少加入拥有大型资源包的服务器时的漫长加载屏幕
- 可配置功能包括:
- 跳过加载淡出效果
- 加载时间提示框(Toast)
- 各个独立功能的开关
基准测试
Packforge 1.0 对比原版 Minecraft
Packforge 1.2 对比 Quick Pack(由 DrexHD 开发)
Packforge 1.2 能够在仅 9.37 秒内加载相同的资源包,而 Packforge 1.0 则需要 16.25 秒,这是通过优化字体加载逻辑实现的。
测试使用了一个大型服务器资源包,其中包含约 28,000 个条目、9,800 张纹理和 10,700 个模型文件,分布在 191 个命名空间中(解压后超过 61 MiB)。
通常情况下,游戏在加载过程中需要执行 4,600 次完整的 ZIP 扫描,或者超过 1.3 亿次的条目检查,仅用于模型/物品的发现和命名空间设置。
PackForge 通过在每次重载时对 ZIP 进行一次索引,避免了大部分重复扫描。
图集溢出保护
一些非常大的资源包也可能因为最终纹理图集过大而在性能较弱或较旧的 GPU 上无法加载。
PackForge 包含可选的图集保护功能,可以在内存中对过大的纹理进行降采样处理,从而使资源包更有可能成功加载。
PackForge 不会修改你的资源包文件。图集保护仅在资源包加载期间创建过大数据纹理的较小临时版本。大多数正常的方块和物品纹理在游戏过程中看起来应该是一样的,但在低端硬件上,经过重度降采样的纹理可能会显得略微柔和。
此功能可以在模组的配置文件或通过 ModMenu 的配置界面中禁用。
兼容性
PackForge 与以下模组兼容:
- Sodium
- Iris
- ImmediatelyFast
- FerriteCore
- Lithium
- Entity Model Features
- Entity Texture Features
- Continuity
- CIT Resewn
- [可能还有更多]
PackForge 也支持 Vulkan!
不支持
OptiFine / OptiFabric —— 可能不兼容,尚未测试。
整合包用法
整合包开发者可以自由地将此模组包含在他们的整合包中。无需许可或事先通知。
PackForge
PackForge is a client-side Fabric mod that helps large resource packs load faster.
It is mainly designed for big server resource packs, such as packs generated by ItemsAdder, ModelEngine, and other heavily customized resource packs.
Minecraft normally has to search through the resource pack many times during loading. With very large packs, this can make the loading screen take a long time, especially when the pack contains thousands of models, textures, sounds, or JSON files.
PackForge improves this by building a fast internal index of the resource pack when it loads. After that, Minecraft can find files much faster instead of repeatedly searching through the whole pack.
What PackForge does
- Speeds up loading and reloading of large zipped resource packs
- Helps reduce long loading screens when joining servers with big packs
- Configurable features such as:
- Skip loading fade out
- Loading time toast
- Each individual features
Benchmark
Packforge 1.0 vs Vanilla Minecraft
Packforge 1.2 vs Quick Pack (by DrexHD)
Packforge 1.2 was able to load the same pack in just 9.37 seconds while Packforge 1.0 load it in 16.25 seconds, this was done by optimizing font loading logic.
Tested with a large server resource pack containing about 28,000 entries, 9,800 textures, and 10,700 model files across 191 namespaces (The pack is over 61 MiB when extracted).
Normally the game has to do 4,600 full ZIP scans, or over 130 million entry checks, just for model/item discovery and namespace setup during loading.
PackForge avoids most of those repeated scans by indexing the ZIP once per reload.
Atlas Overflow Protection
Some very large resource packs can also fail to load on weaker or older GPUs because the final texture atlas becomes too large.
PackForge includes optional atlas protection that can downscale oversized textures in memory so the pack has a better chance to load successfully.
PackForge does not modify your resource pack files. Atlas protection only creates smaller temporary versions of oversized textures while the pack is loading. Most normal block and item textures should look the same during gameplay, but heavily downscaled textures may appear slightly softer on lower-end hardware.
This feature can be disabled in the mod's config file or via ModMenu's config screen
Compatibility
PackForge is compatible with following mods
- Sodium
- Iris
- ImmediatelyFast
- FerriteCore
- Lithium
- Entity Model Features
- Entity Texture Features
- Continuity
- CIT Resewn
- [Probably More]
PackForge also support Vulkan too!
Not Supported
OptiFine / OptiFabric - probably not worked, haven't tested.
Usage in modpack
Modpack developers are free to include this mod in their modpacks. No permission or prior notification is needed.
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
下载 PackForge - 优化后的资源包加载时间
修复 #13:[错误] 与 Afterburner 模组的兼容性问题
- 修复 #11:[Bug]: 使用 mixinextras 0.5.5+ 的模组导致崩溃
- 修复 #9:针对已解压整合包的资源包优化。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧