Naturalist Lag Fix
Fixes a memory leak in Naturalist that slows down servers over time (whale & shark body parts).
介绍
Naturalist Lag Fix
A small fix for a memory leak in [Naturalist](https://www.curseforge.com/minecraft/mc-mods/naturalist) (2.0.5, NeoForge 1.21.1) that makes servers slower and slower the longer they run.
The problem
Whales and Great White Sharks have multi-part bodies. Naturalist registers every body part in a list attached to the world, but only removes them when the creature dies or is discarded. When the creature is simply unloaded with its chunk, its parts stay in the list forever — and a new copy is added each time the chunk reloads.
Every time the game searches for nearby entities (mob AI, collisions, item pickup, Create contraptions…), Naturalist loops over that whole list. On our server, `naturalist$includeMobParts` ended up taking about 33% of every server tick in spark.
The fix
– Body parts are removed as soon as their creature leaves the world, including when its chunk unloads.
– Every 10 seconds, any leftover orphan parts are cleaned up.
– Nothing else in Naturalist is changed: whales and sharks behave exactly the same.
Installation
– Server: required.
– Client: recommended (the same leak exists client-side).
– Requires Naturalist. When the fix works, a line `[NaturalistFix] … parties fantomes retirees` appears in the log.
Credits
– Naturalist by Starfish Studios (Crispytwig): all credit for the mod, its creatures and its content goes to them. This is an unofficial fix, not affiliated with the Naturalist team. If they fix the leak upstream, you won’t need this mod anymore.
常见问题
Naturalist Lag Fix 支持哪些 Minecraft 版本?
Naturalist Lag Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Naturalist Lag Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Illama 的其他作品
查看全部 →owo Network Fix
Fixes the disconnect Failed to encode packet 'clientbound/minecraft:custom_payload' caused by [owo] Sided Packet Codec has not been unpacked on NeoForge 1.21.1.
Mix & Playlists for WaterFrames
Paste a YouTube mix or playlist link into a WaterFrames display and it plays track after track, synced for everyone. Client-side.
Familiers – Pet Manager
Manage all your tamed animals and mounts from the Esc menu: teleport, store, hotkeys, homes, behaviors, Ice and Fire & Aether support.
Lootr Conversion Fix
Fixes Lootr loot chests that stay as plain vanilla chests until right-clicked. Server-side only.
评论
登录后评论和评分