跳到正文

Smart Optimizer

作者:endermanking_

An optimizer that watches your server's RAM and TPS and lowers view distance, simulation distance and mob AI when things start getting heavy

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

smop

Smart Optimizer watches your server’s RAM and TPS and lowers view distance, simulation distance and mob AI when things start getting heavy. Once the server recovers it puts everything back to normal.

Works on Paper (and its forks) and Fabric, for MC 1.20.1 up to 26.2+.

How it works

Every 10 seconds (configurable) it checks the server and picks a level:

  • Healthy (RAM under 80%, TPS 18 or higher): view 10, sim 8, all mob AI enabled
  • Moderate (RAM over 80% or TPS under 18): view 8, sim 6, AI disabled for mobs more than 64 blocks from any player
  • Critical (RAM over 92% or TPS under 15): view 5, sim 4, non-essential AI paused, ground items older than 2 minutes get cleared

It also unloads chunks in dimensions that haven’t had any players in them for 5+ minutes.

Mobs never get killed or removed, their AI is just paused and turned back on when the server is healthy again. The only thing that ever gets deleted is old ground items, and only in critical mode.

Downloads

| Jar | Minecraft | Platform | Java |
|—–|———–|———-|——|
| SmartOptimizer.jar | 1.20.1 – 26.2+ | Paper, Folia, Purpur, Pufferfish, Spigot, Bukkit | 17+ |
| SmartOptimizer-Fabric.jar | 26.1 – 26.2+ | Fabric Loader ≥ 0.19 + Fabric API | 25+ |
| SmartOptimizer-Fabric-legacy.jar | 1.20.1 – 1.21.11 | Fabric Loader ≥ 0.15 + Fabric API | 17+ |

  • Pick the .jar file that fits your version and platform. Configurations will be listed below

Config

thresholds:
  ram:
    moderate: 80.0   # % RAM usage to trigger moderate
    critical: 92.0   # % RAM usage to trigger critical
  tps:
    moderate: 18.0
    critical: 15.0

distances:
  view:
    min: 4
    max: 16
  simulation:
    min: 4
    max: 12

optimization:
  check_interval_ticks: 200        # 200 ticks = 10 seconds
  chunk_unload_delay_minutes: 5    # unload chunks in empty dimensions after this long
  ground_item_clear_minutes: 2     # only applies in critical mode

settings:
  debug: false

If you set something out of range it gets clamped to a safe value, it won’t break anything.

Commands

  • /smartoptimizer status shows current RAM, TPS and optimization level
  • /smartoptimizer reload reloads the config

Aliases are /so and /smartopt. Both commands need smartoptimizer.admin, which defaults to op.

Partners

gravel host

Use my code for 35% off your first month.

常见问题

Smart Optimizer 支持哪些 Minecraft 版本?

Smart Optimizer 支持 Minecraft Java 版 1.20–26.2,共 23 个版本,可用的加载器:Bukkit / Fabric / Folia / Paper / Purpur / Spigot。下载时注意选择和你游戏版本一致的文件。

Smart Optimizer 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Bukkit / Fabric / Folia / Paper / Purpur / Spigot,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

endermanking_ 的其他作品

查看全部 →