
CobblemonOptimizer
CobbleOptimizer is a server-side Fabric mod that reduces lag caused by Cobblemon's Pokemon entities.
3.5K
17
Список изменений
obbleOptimizer is a server-side Fabric mod that optimizes Cobblemon (Pokemon) entities based on server performance. It has 4 features:
- Tick Throttle — When TPS drops below a threshold, distant wild Pokemon skip ticks. Close Pokemon always tick normally. Ticks are staggered across entities to avoid CPU spikes.
- AI Freeze — Wild Pokemon beyond a configurable radius have their AI suspended entirely (pathfinding, goals). They stand still until a player gets close again.
- Adaptive Spawn — Dynamically reduces Cobblemon spawn rates as TPS drops. At healthy TPS, all spawns go through. At critical TPS, all spawns are blocked. In between, spawns are probabilistically allowed via linear interpolation.
- Batch Despawn — Periodically checks each world's Pokemon count. If it exceeds a cap, the most expendable Pokemon (far from players, low level) are removed. Shiny, legendary, mythical, ultra beast, owned, and in-battle Pokemon are never despawned.
All features share a TPS monitor (rolling average over 100 ticks) and a player distance cache (recalculated each tick). Everything is configurable via a TOML file and in-game commands (/cobbleoptimizer).
Файлы
CobbleOptimizer-1.0.0.jar(419.62 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.0
Загрузчики
Fabric
Версии игры
1.21.1
Загрузок
12
Дата публикации
1 мес. назад