OptimizeMod

Reduces server lag by throttling distant entity ticks, suspending mob AI, and limiting particles.

Редакция NLZONE · 2 мин чтения · 1 просмотр
OptimizeMod
Скачать OptimizeMod1.20.1 – 1.21.9 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Reduces server lag by throttling distant entity ticks, suspending mob AI, and limiting particles.

  • Тип: мод
  • Загрузчик: fabric, forge
  • Версии Minecraft: 1.20.1 – 1.21.9
  • Скачиваний на Modrinth: 8 420

Подробно

> Keep distant simulation quiet so active gameplay gets more CPU time.

OptimizeMod is a lightweight Fabric optimization mod for Minecraft 1.21.1. Its goal is simple: reduce work on entities and effects that players are not actively interacting with.

1. Distance-based movement tick throttling (EntityTickMixin) Hook: LivingEntity.tickMovement()

- Players are excluded. - If no player is found within sleep distance (96 blocks by default), non-player living entities skip movement ticks (ENTITYTICKSKIP = 4 by default). - If a player is present but farther than reduce distance (48 blocks), movement updates are throttled (roughly every other tick).

2. Distance-based AI throttling (MobEntityAIMixin) Hook: LivingEntity.tickNewAi() (for MobEntity)

- If no player is found within reduce distance (48 blocks), AI updates are cancelled for that tick. - In mid-distance ranges, AI updates are partially throttled (every other tick). - While throttled/cancelled, despawnCounter is reset to avoid unwanted despawn side effects.

3. Particle throughput cap (ParticleManagerMixin, client) Hook: ParticleManager.addParticle(...)

- Particle creation is capped with a local counter (MAXPARTICLESLIMIT = 4000). - Excess particle spawn requests are dropped when the cap is exceeded. - Intended to reduce client stutter from extreme particle bursts.

- OptimizeMod does not guarantee fixed FPS/TPS/MSPT improvements. - Real impact depends on mob density, player spread, chunk activity, modpack composition, JVM/runtime settings, and test scenario. - Behavior changes for distant mobs/entities are intentional by design.

To validate impact on your setup, compare baseline vs. OptimizeMod with identical conditions:

1. Same Java version, JVM args, mod list, seed, and config. 2. Same scenario and duration (recommended: 20-30 minutes per run). 3. At least 3 baseline runs + 3 OptimizeMod runs. 4. Collect comparable metrics: - p50/p95 MSPT (spark or equivalent) - CPU usage (process/system) - FPS/frame-time (client tests) 5. Compare distributions (median/p95), not one-off spikes.

1. Install Fabric Loader for Minecraft 1.21.1 2. Install Fabric API 3. Place the OptimizeMod jar in mods/

- Designed to complement other optimization mods. - As with any mixin-based mod, test your exact modpack before production deployment.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также