Capability Fix Revived
一款针对 Forge 1.20.1 的优化模组,旨在消除实体能力(capability)查找带来的额外开销。
主要改进与安全修复:
更安全的缓存机制:此版本仅缓存活跃且存在的能力,并自动注册失效监听器。当能力被移除或失效时,缓存引用会立即清除,从而防止内存泄漏、状态陈旧或实体行为异常。
默认配置:包含经过验证的能力预配置白名单(包括 Curios、Goety、Mowzie's Mobs、Celestisynth 和 Goety Delight),让玩家无需进行性能分析即可立即获得性能提升。
无后台开销:追踪和分析引擎仅在主动触发时运行。
使用方法:
1. 开始记录:在游戏中运行 `/capability_fix_revived toggle_recording` 以开始记录。
2. 运行游戏:让服务器运行 10-30 分钟。不要只是站着不动(虽然也能工作,但效果不佳)
3. 生成报告:运行 `/capability_fix_revived generate_report` 以停止记录并写入数据。
4. 配置:打开 `config/capability_fix_revived/reports/capability_report.txt` 并复制其中的 ID。将它们粘贴到 `config/capability_fix_revived/capability_fix_revived-common.toml` 的白名单中。
请确保它们是可以安全缓存的!
5. 应用:运行 `/capability_fix_revived reload_config` 以应用更改。
鸣谢:
Icy0x1 - 原版模组作者
Capability Fix Revived
An optimization mod for Forge 1.20.1 designed to eliminate entity capability lookup overhead.
Key Improvements & Safety Fixes:
Safer Caching: This version only caches active, present capabilities and automatically registers invalidation listeners. Cached references clear instantly when a capability is removed or invalidated, preventing memory leaks, stale states, or broken entity behavior.
Defaulted Configs: Includes a pre-configured default whitelist of verified capabilities (including Curios, Goety, Mowzie's Mobs, Celestisynth, and Goety Delight) to give players an immediate performance boost without requiring profiling.
No Background Overhead: The tracking and profiling engine only runs when actively triggered.
How to Use:
1. Start Recording: Run `/capability_fix_revived toggle_recording` in-game to begin.
2. Play the Game: Let the server run for 10-30 minutes. Don't just stand still (will still work but ye)
3. Generate Report: Run `/capability_fix_revived generate_report` to stop recording and write the data.
4. Configure: Open `config/capability_fix_revived/reports/capability_report.txt` and copy the IDs. Paste them into your `config/capability_fix_revived/capability_fix_revived-common.toml` whitelist.
MAKE SURE THEY'RE SAFE TO CACHE!
5. Apply: Run `/capability_fix_revived reload_config` to apply changes.
Credits:
Icy0x1 - Original Mod Author
评论 0
登录后参与评分
还没有评论,来抢沙发吧