随机优化
描述
此模组实现了以下功能,以显著提升游戏性能并修复现有漏洞。所有功能均可通过配置文件进行切换。
- 修复 MC-249136 (1.20.1) / 改善结构定位性能 (1.21.1): 该漏洞会导致玩家在尝试定位埋藏的宝藏(最明显)、打开/破坏包含地图的箱子或使用
/locate命令时出现严重的服务器卡顿(挂起)。此模组采用简单的检查机制,大幅减少结构搜索过程中所需的枚举数量,从而优化速度。 - (v1.6+ 默认禁用) 确定性物品掉落: 此模组使掉落物品的生成位置去随机化。这使得设计红石机械变得更加简单和容易。
- 优化的资源包/数据包加载: 提升资源包和数据包的加载速度。模组在首次访问时为压缩的资源包和数据包构建紧凑索引,取代了命名空间发现和递归资源列表期间的重复完整 ZIP 扫描。这减少了重载时间和临时内存分配,特别是对于大型资源包和包含大量资产的整合包。
- 船只坠落伤害修复: 修复了船只在从特定高度坠落时受到坠落伤害的问题。此行为与 MC-Wiki 的描述及较新的 Minecraft 版本保持一致,同时也提升了性能。
- DFU 优化: 延迟(懒加载)DataFixerUpper (DFU),以提升游戏启动速度。
兼容性与替代
此模组完全或部分替代了以下模组的功能:
- MC-249136 Fix: 此模组从根本上优化了结构搜索算法。相比之下,其他模组通常将任务移至单独线程以掩盖卡顿。虽然技术上不冲突,但使用此模组通常能提供足够的优化,使得其他模组变得多余。如果你严格需要异步加载,建议使用 Async Locator,因为它支持更多的结构且实现更好。
- Shipwreck/Buried Treasure Fixes: 此模组共享用于 MC-249136 的基本优化逻辑。如果已安装此模组,则无需使用这些模组。
- Vertical Fall: 此模组完全替代了此模组的所有功能。
- Drizzleproof: 部分替代。如果你只需要确定性物品掉落,则不需要 Drizzleproof。但是,如果你需要对实体机制进行细粒度配置,请继续使用 Drizzleproof。
- Quick Pack: 当启用此模组的压缩包索引时,Quick Pack 的资源包替换实现将被自动抑制,转而使用此模组更快的索引。
- ModernFix: 当启用此模组的压缩包索引时,ModernFix 的重叠 ZIP 资源包索引将被自动抑制。其他 ModernFix 资源包优化以及所有无关功能仍保持启用状态。
- Boat Break Fix: 此模组完全替代了此模组的功能。
- DFU Loading Optimizations (例如 LazyDFU): 此模组完全替代了这些模组的功能。
兼容性与许可
此模组与其他模组具有良好的兼容性,且已知无不相容问题。 它基于 LGPL-3.0 许可证开源。
致谢
- bytzo 的 MC-249136,其启发我加速结构定位。
Random Optimization
Description
This mod implements the following features to significantly optimize game performance and fix existing bugs. All features can be toggled via the configuration file.
- Fixes MC-249136(1.20.1) / Improve structure location performace(1.21.1): This bug causes severe server lag (hangs) when players attempt to locate Buried Treasure (most notably), or when opening/breaking chests containing maps, or using the
/locatecommand. This mod employs simple checks to drastically reduce the enumeration required during structure searching, thereby optimizing speed. - (Default Disabled in v1.6+)Deterministic Item Drops: The mod de-randomizes the spawn position of dropped items. This makes designing Redstone contraptions much simpler and easier.
- Optimized Resource/Data Pack Loading: Improves the loading speed of Resource Packs and Data Packs. The mod Builds a compact index for compressed Resource Packs and Data Packs on first access, replacing repeated full-ZIP scans during namespace discovery and recursive resource listing. This reduces reload time and temporary allocations, especially for large packs and modpacks containing many assets.
- Boat Fall Damage Fix: Fixes an issue where boats take fall damage when falling from specific heights. This aligns behavior with the MC-Wiki description and newer Minecraft versions, while also improving performance.
- DFU Optimization: Defers (lazy loads) the DataFixerUpper (DFU) to improve game startup speed.
Compatibility & Replacements
This mod completely or partially replaces the functionality of the following mods:
- MC-249136 Fix: This mod fundamentally optimizes the structure search algorithm. In contrast, other mods often move the task to a separate thread to mask the lag. While technically not conflicting, using this mod usually provides sufficient optimization, making the other mod unnecessary. If you strictly require asynchronous loading, Async Locator is recommended instead, as it supports more structures and has a better implementation.
- Shipwreck/Buried Treasure Fixes: This mod shares the same essential optimization logic for MC-249136. There is no need to use those mods if this one is installed.
- Vertical Fall: This mod completely replaces all functionality of this mod.
- Drizzleproof: Partially replaced. If you only need deterministic item drops, you do not need Drizzleproof. However, if you require granular configuration for entity mechanics, please continue using Drizzleproof.
- Quick Pack: When this mod's compressed-pack index is enabled, Quick Pack's replacement resource-pack implementation is automatically suppressed and this mod's faster index is used instead.
- ModernFix: When this mod's compressed-pack index is enabled, ModernFix's overlapping ZIP resource-pack index is automatically suppressed. Other ModernFix resource-pack optimizations and all unrelated features remain enabled.
- Boat Break Fix: This mod completely replaces the functionality of this mod.
- DFU Loading Optimizations (e.g., LazyDFU): This mod completely replaces the functionality of these mods.
Compatibility & License
This mod has good compatibility with other mods and has no known incompatibilities. It is open-source under the LGPL-3.0 license.
Credits
- The MC-249136 by bytzo, which inspired me to speed up the structure locate.
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Random Optimization
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复:zip 包索引在 listResources 中遗漏了精确的文件路径(修复与 tac_zh 的兼容性)
修复因与原版行为不匹配而导致的 Dynamic Surroundings 兼容性问题。
修复文件包中包含大写文件路径时与原版行为不一致的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧