Put A Plug In it! (PAPI) 最初是为了解决我在游玩 P1nero 制作的整合包 "NightfallCraft - The Casket of Reveries" 时发现 Sophisitcoded Core 存在的内存泄漏问题。
Sophisticated Core 在其 1.20.1+ 的 Forge 和 NeoForge 版本中原生修复了该内存泄漏,但该模组的 1.20.1 之前版本以及 Fabric 版本仍然存在此故障,此时可使用 PAPI 进行修复。
PAPI 现在还致力于发现和解决尽可能多的内存泄漏,并集成来自其他模组的功能及与其他模组的兼容性,旨在打造一个集内存泄漏修复与内存优化于一体的模组,同时增加对其他内存泄漏修复和内存优化模组功能的支持版本和加载器支持。

图标与名称由 lyftos 设计,灵感源自 Morio von Rickenbach 和 Michael Frei (Playables) 的作品 Plug & Play
核心功能
- Sophisticated Core ItemStackKey 泄漏缓解
- 客户端离开世界时清理 ModelManager 缓存
/papi leak report诊断工具- 将堆大小、GC、监视对象大小及客户端模型缓存计数写入文件
- 可选的
/papi leak dumpHeap用于完整堆转储
- 防止 RaphiMC 的 ImmediatelyFast 与 FX(FX_PR0CESS)的 Memory Leak Fix(MemoryLeakFix)之间已知的崩溃
- 防止 Intel 核显和独显上由 RaphiMC 的 ImmediatelyFast 导致的屏幕冻结故障
源自或适配于其他模组的功能
FX (FX_PR0CESS) 的 Memory Leak Fix (MemoryLeakFix)
- 生物群系温度缓存共享
- 实体卸载时清除 LivingEntity 大脑内存
- TagKey 弱引用内部池
- 溺尸导航清理
- 准星目标/命中结果重置
- 大幅截图缓冲区失败时释放
- 纹理读取缓冲区失败时释放
pietro-lopes 的 AllTheLeaks
- Vanilla
EntityTickList被动地图清理 - 针对以下模组的客户端泄漏修复:
- EMI — 重生时清除配方历史
- JEI — 清除 RecipeTransferManager 和磨石菜单
- Jade — 清除 ObjectDataCenter 和 hideModName 缓存
- Iceberg — 清除 EntityCollector 和 CustomItemRenderer 缓存
- Sophisticated Core — 世界卸载时使 StorageWrapperRepository 失效
- Supplementaries — 在服务器停止时运行其缓存清理程序
- Entity Texture Features — 重生时释放玩家纹理状态
- Entity Model Features / ETF — 每次渲染后丢弃渲染器状态
我打算在未来添加更多内存泄漏修复。如果你知道任何疑似存在内存泄漏问题的模组或整合包,请在评论区告诉我!
Put A Plug In it! (PAPI) initially solved a Memory Leak I found with Sophisitacted Core while playing the "NightfallCraft - The Casket of Reveries" Modpack by P1nero
Sophisticated Core natively fixed the Memory Leak in their 1.20.1+ Forge & NeoForge versions, but the pre-1.20.1 and Fabric versions of the mod still have the glitch, which PAPI can be used to fix.
PAPI now also aims to find and solve as many Memory Leaks as possible, and integrate features and compatability for and from other mods, to make an all-in-one Memory Leak Fix and Memory Optimization mod, and to increase version and loader support for features of other Memory Leak Fix and Memory Optimization Mods.

Icon and Name by lyftos, inspired by Plug & Play by Morio von Rickenbach, and Michael Frei (Playables)
Core Features
- Sophisticated Core ItemStackKey leak mitigation
- ModelManager cache cleanup when the client leaves a world
/papi leak reportdiagnostics- heap, GC, watched-object sizes and client model-cache counts written to a file
- an opt-in
/papi leak dumpHeapfor the full heap dump
- Prevent known crashes between RaphiMC's ImmediatelyFast and FX (FX_PR0CESS)'s Memory Leak Fix (MemoryLeakFix)
- Prevent Screen-Freeze Glitch caused by RaphiMC's ImmediatelyFast on Intel IGP's and GPU's
Features Derrived or Adapted From Other Mods
FX (FX_PR0CESS)'s Memory Leak Fix (MemoryLeakFix)
- Biome Temperature cache sharing
- LivingEntity brain-memory clear on unload
- TagKey weak intern pool
- Drowned navigation cleanup
- Crosshair target / hit result reset
- Huge screenshot buffer free-on-failure
- Texture read-buffer free-on-failure
pietro-lopes' AllTheLeaks
- Vanilla
EntityTickListpassive-map clear - per-mod client leak fixes for:
- EMI — clear recipe history on respawn
- JEI — clear RecipeTransferManager and the Grindstone menu
- Jade — clear ObjectDataCenter and the hideModName cache
- Iceberg — clear EntityCollector and CustomItemRenderer caches
- Sophisticated Core — invalidate StorageWrapperRepository on world unload
- Supplementaries — run its cache clearers on server stop
- Entity Texture Features — release player-texture state on respawn
- Entity Model Features / ETF — drop renderer state after each render
I intend to add more Memory Leak fixes in the future so if you know of any mods or modpacks that you suspect of having Memory Leak issues, let me know in the comments!
下载 Put A Plug In it! (PAPI)
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Put A Plug In it! (PAPI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- Minecraft:移除已过期最后伤害来源的存活实体掉落
- JEI:丢弃静态原料编解码器
- SophisticatedCore:当 CraftingTweaks 也已安装时,在世界切换时重新注册 CraftingTweaks 的合成 UI 部分
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧