HariEntity | 异步实体处理
高性能并行实体刻与生物生成
什么是 HariEntity?
HariEntity 是 Async 的一个分支,旨在通过跨多个 CPU 核心处理实体更新来改善 Minecraft 服务器性能,而非仅依赖主服务器线程。
更多实体。稳定的 TPS。
通过将实体刻分配到动态线程池中,HariEntity 在重负载下仍能保持高 TPS,从而显著减少实体密集型服务器上最大的性能瓶颈之一。
技术特性
专为可扩展且线程安全的并行实体处理而构建。
- 并行实体刻 — 实体更新被分批并在所有可用的 CPU 核心上并发处理。
- 异步生物生成 — 自然生物生成的计算与主服务器刻并行运行。
- 线程安全同步 — 玩家、投射物、TNT 和掉落物品等对线程敏感的实体仍在主线程上保持同步。
- 并行爆炸处理 — 爆炸计算在独立于实体刻的专用线程池中进行。
- 动态线程池 — 自动扩展以利用所有可用的处理器核心。
- 优化调度 — 高效的工作负载分配最大限度地减少了同步开销并提高了 CPU 利用率。
配置
配置文件位于 config/async.toml。
- 线程数量 — 配置工作线程的最大数量(默认:所有可用的处理器)。
- 异步生物生成 — 启用或禁用异步自然生物生成。
- 同步实体 — 配置哪些实体类型必须始终在主线程上处理。
- 运行时命令 — 使用
/async config 和 /async stats 管理设置并监控性能。
安全性与兼容性
并非所有实体都可以安全地进行并行处理。
- 始终同步 — 玩家、投射物、船只、矿车、落块、潜影贝以及其他对线程敏感的实体。
- 可配置同步 — TNT、掉落物品、经验球、苦力怕、凋灵以及许多其他实体可以进行配置。
- Hari 生态系统支持 — 针对 Harium、HariPlayer、HariChunk 和其他 Hari 项目进行了兼容性优化。
分支信息
HariEntity 是 Async 的一个活跃维护分支,专注于为 Minecraft 服务器提供可扩展的并行实体处理和现代性能优化。
实验性:并行实体处理可能与某些插件或模组不兼容。建议在投入生产环境之前进行彻底测试。
致谢与支持
特别感谢原始 Async 开发者和贡献者的工作。
HariEntity 继续进行开发,提供了额外的优化、改进的可扩展性和长期维护。
加入社区
需要帮助、想报告问题或获取最新动态?加入我们的 Discord 社区。
加入我们的 DISCORD
HariEntity • 由 Hari 维护 • 高性能 Minecraft 服务器软件
本项目描述由 AI 协助准备。
HariEntity | Asynchronous Entity Processing
High-Performance Parallel Entity Ticking & Mob Spawning
What is HariEntity?
HariEntity is a fork of Async, designed to improve Minecraft server performance by processing entity updates across multiple CPU cores instead of relying solely on the main server thread.
More Entities. Stable TPS.
By distributing entity ticking across a dynamic thread pool, HariEntity significantly reduces one of the largest performance bottlenecks on entity-heavy servers while maintaining high TPS under heavy load.
Technical Features
Built for scalable and thread-safe parallel entity processing.
- Parallel Entity Ticking — Entity updates are batched and processed concurrently across all available CPU cores.
- Asynchronous Mob Spawning — Natural mob spawning calculations run in parallel with the main server tick.
- Thread-Safe Synchronization — Thread-sensitive entities such as players, projectiles, TNT, and dropped items remain synchronized on the main thread.
- Parallel Explosion Processing — Explosion calculations run in a dedicated thread pool independent of entity ticking.
- Dynamic Thread Pool — Automatically scales to utilize all available processor cores.
- Optimized Scheduling — Efficient workload distribution minimizes synchronization overhead and maximizes CPU utilization.
Configuration
Configuration is located in config/async.toml.
- Thread Count — Configure the maximum number of worker threads (default: all available processors).
- Async Mob Spawning — Enable or disable asynchronous natural mob spawning.
- Synchronized Entities — Configure which entity types must always be processed on the main thread.
- Runtime Commands — Use
/async config and /async stats to manage settings and monitor performance.
Safety & Compatibility
Not every entity can safely be processed in parallel.
- Always Synchronized — Players, projectiles, boats, minecarts, falling blocks, shulkers, and other thread-sensitive entities.
- Configurable Synchronization — TNT, dropped items, experience orbs, creepers, withers, and many other entities can be configured.
- Hari Ecosystem Support — Optimized for compatibility with Harium, HariPlayer, HariChunk, and other Hari projects.
Fork Information
HariEntity is an actively maintained fork of Async, focused on delivering scalable parallel entity processing and modern performance optimizations for Minecraft servers.
Experimental: Parallel entity processing may not be compatible with every plugin or mod. Thorough testing is recommended before using it in production environments.
Credits & Support
Special thanks to the original Async developers and contributors for their work.
HariEntity continues development with additional optimizations, improved scalability, and long-term maintenance.
Join the Community
Need help, want to report issues, or stay updated? Join our Discord community.
JOIN OUR DISCORD
HariEntity • Maintained by Hari • High-Performance Minecraft Server Software
This project description was prepared with AI assistance.
评论 0
登录后参与评分
还没有评论,来抢沙发吧