⚡ Stasis | 智能实体优化
Stasis 是一款先进的实体管理系统,旨在通过动态、实时的性能缩放来消除服务器卡顿。与传统通过删除实体来破坏游戏体验的“清卡”插件不同,Stasis 优化现有实体的行为和物理特性,从而在不损害玩家体验的前提下维持高 TPS(每秒刻数)。
? 核心功能
? AI 休眠
根据与玩家的距离自动切换怪物 AI。
- 正常模式: 对距离超过 32 格的怪物禁用 AI。
- 激进模式: 将限制收紧至 24 格。
- 不包括 Boss 怪物和带有名称标签的实体,以保持沉浸感。
? 碰撞剔除
解决由实体密度引起的 $O(n^2)$ 计算瓶颈。
- 当 15+ 只怪物占据一个小区域时,实体间的碰撞将被禁用。
- 显著减少“牛压机”和高效率刷怪塔中的卡顿。
? 智能物品合并
简化掉落的物品以减少实体总数。
- 半径 5 格内的相同物品会立即合并为一个堆叠。
- 防止在大规模爆炸或大型收获期间服务器挂起。
⚡ 自适应 TPS 系统
插件的大脑。Stasis 每秒监控你的服务器健康状况 20 次。
- 阈值: 如果 TPS 降至 18.0 以下,插件进入 激进模式。
- 恢复: 一旦服务器稳定,自动返回正常模式。
? 性能缩放
| 功能 |
正常模式 (> 18.0 TPS) |
激进模式 (< 18.0 TPS) |
| 休眠范围 |
32 格 |
24 格 |
| 碰撞限制 |
15+ 怪物 |
8+ 怪物 |
| 物品合并半径 |
5 格 |
8 格 |
| 扫描频率 |
每 20 秒 |
每 5 秒 |
?️ 命令与权限
命令
| 命令 |
描述 |
权限 |
/stasis reload |
重新加载配置文件 |
stasis.admin |
/stasis stats |
查看实时优化统计信息 |
stasis.admin |
/stasis toggle |
全局启用或禁用插件 |
stasis.admin |
/stasis info |
查看当前模式和服务器健康状况 |
stasis.admin |
权限
stasis.admin:授予所有管理命令的访问权限。
stasis.bypass:拥有此权限的玩家附近的实体永远不会被休眠(适用于管理员或创作者)。
技术说明: Stasis 专为 Paper、Purpur 和 Spigot 服务器设计。它在必要时利用原生 NMS 调用,以确保对你的 CPU 产生尽可能低的开销。
⚡ Stasis | Intelligent Entity Optimization
Stasis is a sophisticated entity management system designed to eliminate server lag through dynamic, real-time performance scaling. Unlike traditional "clearlag" plugins that disrupt gameplay by deleting entities, Stasis optimizes the behavior and physics of existing entities to maintain a high TPS (Ticks Per Second) without harming the player experience.
? Core Features
? AI Hibernation
Automatically toggles mob AI based on player proximity.
- Normal Mode: Disables AI for mobs 32+ blocks away.
- Aggressive Mode: Tightens the limit to 24 blocks.
- Excludes boss mobs and name-tagged entities to preserve immersion.
? Collision Culling
Solves the $O(n^2)$ calculation bottleneck caused by entity density.
- When 15+ mobs occupy a small area, inter-entity collisions are disabled.
- Dramatically reduces lag in "cow-crushers" and high-efficiency mob grinders.
? Smart Item Merging
Streamlines dropped items to reduce the total entity count.
- Identical items within a 5-block radius are instantly merged into a single stack.
- Prevents server hanging during massive explosions or large-scale harvests.
⚡ Adaptive TPS System
The brain of the plugin. Stasis monitors your server health 20 times per second.
- Threshold: If TPS drops below 18.0, the plugin enters Aggressive Mode.
- Recovery: Automatically returns to Normal Mode once the server stabilizes.
? Performance Scaling
| Feature |
Normal Mode (> 18.0 TPS) |
Aggressive Mode (< 18.0 TPS) |
| Hibernation Range |
32 Blocks |
24 Blocks |
| Collision Limit |
15+ Mobs |
8+ Mobs |
| Item Merge Radius |
5 Blocks |
8 Blocks |
| Scan Frequency |
Every 20 Seconds |
Every 5 Seconds |
?️ Commands & Permissions
Commands
| Command |
Description |
Permission |
/stasis reload |
Reloads the configuration file |
stasis.admin |
/stasis stats |
View real-time optimization statistics |
stasis.admin |
/stasis toggle |
Enable or disable the plugin globally |
stasis.admin |
/stasis info |
View current mode and server health |
stasis.admin |
Permissions
stasis.admin: Grants access to all management commands.
stasis.bypass: Entities near players with this permission will never be hibernated (useful for Admins or Creators).
Technical Note: Stasis is designed for Paper, Purpur, and Spigot servers. It utilizes native NMS calls where necessary to ensure the lowest possible overhead on your CPU.
评论 0
登录后参与评分
还没有评论,来抢沙发吧