Dynamic PERFORMANCE+
概述
Dynamic PERFORMANCE+ 是一款面向 Paper 核心服务器(1.21.x)的高性能 Minecraft 服务器优化插件。它旨在通过智能管理服务器系统,在不动摇物理或实体行为等核心游戏玩法机制的前提下,最大限度地减少刻延迟(tick lag),提升服务器响应速度,并保持稳定的 TPS。
核心优化
-
异步任务调度: 将包括区块管理和清理例程在内的繁重操作卸载到异步线程中,从而减轻主线程负载并提高服务器响应速度。
-
区块管理: 根据玩家距离和活动状态动态加载和卸载区块,利用优化的队列系统在性能和游戏体验之间取得平衡。
-
实体与生物处理: 采用基于距离的剔除技术和条件性 AI 节流,限制不必要的实体更新,确保在实体密集环境中也能保持流畅的性能。
-
下落方块优化: 在保持下落方块实体完整功能的同时,简化物理计算,以提高服务器效率。
-
爆炸优化: 调节同时进行的爆炸计算,并管理方块和粒子效果,在高负载场景下显著降低 CPU 使用率。
-
漏斗传输优化: 调整漏斗的传输速率和处理间隔,防止大规模物品运输系统中出现刻延迟。
-
自动清理: 定期移除未追踪的实体、掉落的物品和过期的投射物,以回收服务器资源并维持最佳性能。
-
性能监控: 持续跟踪 MSPT、TPS 和实体数量,并支持可配置的阈值;当性能指标低于定义标准时,自动触发优化措施。
性能基准测试
| 指标 |
无插件 |
启用 Dynamic PERFORMANCE+ |
变化 |
| 平均 TPS |
19.2 |
19.8 |
+0.6 TPS |
| 最低 TPS |
16.4 |
18.2 |
+1.8 TPS |
| 刻持续时间 (ms) |
51.3 ms |
45.1 ms |
-12% |
| CPU 使用率 (%) |
38–42% |
31–35% |
整体降低 7% |
| RAM 使用量 |
1.45 GB |
1.28 GB |
减少 170 MB |
| 实体刻时间 |
22.8 ms |
18.6 ms |
-18% |
| 区块加载时间 |
310 ms |
260 ms |
-16% |
| 红石处理 |
高 |
中 |
改善 |
| 服务器启动时间 |
21.5 秒 |
18.7 秒 |
-13% |
注意:所有结果均在运行 Dynamic PERFORMANCE+ 的低配服务器上记录。在更好的服务器上可能会有更多的优化空间。
服务器配置规格:
- CPU: Intel i5 2410M @2.30GHz
- RAM: 4GB DDR3
- 无 GPU
管理员命令
所有 /dp 命令均需要 dynamicperformance.admin 权限。
-
/dp optimize – 应用一键优化,包括清除卡顿、卸载区块、减少刻负载、最小化红石活动以及限制生物 AI。
-
/dp entities – 清理实体以释放服务器资源并提高性能。
-
/dp chunks – 管理区块的加载和卸载,以实现最佳的服务器性能。
-
/dp stats – 显示实时性能统计数据,如 TPS、内存使用量和实体数量。
-
/dp reload – 在不重启服务器的情况下重新加载插件配置。
-
/dp boost – 激活增强模式,持续时间为可配置时长,通过减少 AI、红石和实体负载来临时提升服务器性能。
兼容性
- 完全兼容 Paper、Purpur 和 Spigot 服务器(Minecraft 1.21.x)。
- 无需客户端进行任何修改。
主要功能
- 智能负载均衡以防止服务器卡顿。
- 针对高密度生物区域的自适应 AI 节流。
- 可配置的阈值用于自动化优化。
- 支持大型农场、红石机械装置和复杂建筑。
Dynamic PERFORMANCE+
Overview
Dynamic PERFORMANCE+ is a high-performance Minecraft server optimization plugin for Paper-based servers 1.21.x. It is engineered to minimize tick lag, enhance server responsiveness, and maintain consistent TPS by intelligently managing server systems without altering core gameplay mechanics such as physics or entity behavior.
Core Optimizations
-
Asynchronous Task Scheduling: Offloads intensive operations, including chunk management and cleanup routines, to asynchronous threads, reducing main-thread load and improving server responsiveness.
-
Chunk Management: Dynamically loads and unloads chunks based on player proximity and activity, utilizing an optimized queue system to balance performance and gameplay experience.
-
Entity & Mob Processing: Employs distance-based culling and conditional AI throttling to limit unnecessary entity updates, ensuring smoother performance even in entity-heavy environments.
-
Falling Block Optimization: Maintains full functionality of falling block entities while streamlining physics calculations for enhanced server efficiency.
-
Explosion Optimization: Regulates simultaneous explosion calculations and manages block and particle effects, significantly lowering CPU usage during high-load scenarios.
-
Hopper Transfer Optimization: Adjusts hopper transfer rates and processing intervals to prevent tick slowdowns in large-scale item transportation systems.
-
Automated Cleanup: Periodically removes untracked entities, dropped items, and expired projectiles to reclaim server resources and maintain optimal performance.
-
Performance Monitoring: Continuously tracks MSPT, TPS, and entity counts with configurable thresholds, automatically triggering optimizations when performance metrics fall below defined standards.
Performance Bechmarks
| Metric |
Without Plugin |
With Dynamic PERFORMANCE+ |
Change |
| Average TPS |
19.2 |
19.8 |
+0.6 TPS |
| Minimum TPS |
16.4 |
18.2 |
+1.8 TPS |
| Tick Duration (ms) |
51.3 ms |
45.1 ms |
-12% |
| CPU Usage (%) |
38–42% |
31–35% |
-7% overall |
| RAM Usage |
1.45 GB |
1.28 GB |
-170 MB |
| Entity Tick Time |
22.8 ms |
18.6 ms |
-18% |
| Chunk Load Time |
310 ms |
260 ms |
-16% |
| Redstone Processing |
High |
Medium |
Improved |
| Server Start Time |
21.5 sec |
18.7 sec |
-13% |
Note: All results were recorded while running Dynamic PERFORMANCE+ on a weak server. There could be more optimization on better servers.
SERVER SPECIFICATIONS:
- CPU: Intel i5 2410M @2.30GHz
- RAM: 4GB DDR3
- No GPU
Admin Commands
All /dp commands require the dynamicperformance.admin permission.
-
/dp optimize – Applies one-click optimizations, including clearing lag, unloading chunks, reducing ticking loads, minimizing redstone activity, and throttling mob AI.
-
/dp entities – Cleans up entities to free server resources and improve performance.
-
/dp chunks – Manages chunk loading and unloading for optimal server performance.
-
/dp stats – Displays real-time performance statistics such as TPS, memory usage, and entity counts.
-
/dp reload – Reloads the plugin configuration without restarting the server.
-
/dp boost – Activates boost mode for a configurable duration, temporarily enhancing server performance by reducing AI, redstone, and entity load.
Compatibility
- Fully compatible with Paper, Purpur, and Spigot servers (Minecraft 1.21.x).
- Requires no client-side modifications.
Key Features
- Intelligent load balancing to prevent server lag.
- Adaptive AI throttling for high-density mob areas.
- Configurable thresholds for automated optimizations.
- Supports large-scale farms, redstone contraptions, and complex builds.
评论 0
登录后参与评分
还没有评论,来抢沙发吧