CleanJoin 是一款专为高玩家数量的 NeoForge 服务器及 Arclight 混合环境设计的服务端性能模组。
当大量玩家同时加入时,服务器的主要线程会因同时处理区块加载、实体追踪和包序列化而承受巨大压力,导致 TPS 下降并引发 watchdog 崩溃。CleanJoin 通过三个并行工作的系统来解决这一问题。
当玩家加入时,附近的区块会在后台异步加载,确保主线程无需等待磁盘 I/O。初始的实体同步不会在第一个 tick 内发送数百个实体数据包,而是将同步过程分散到加入后的前两秒内完成,并且敌对生物和玩家始终优先到达。对于距离任何玩家都较远的被动型生物,其 AI 会在一个工作线程上暂时挂起,从而在高负载期间减少寻路和计算目标带来的开销。
该模组完全兼容同时运行 NeoForge 模组与 Bukkit 插件的 Arclight 服务器。所有写回游戏状态的更改都会被安全地路由至主线程,以避免与 Bukkit 事件系统发生冲突。
CleanJoin is a server-side performance mod designed for high-population NeoForge servers and Arclight hybrid environments.
When many players join at the same time, the server main thread gets hammered with chunk loading, entity tracking and packet serialization all at once, causing TPS drops and watchdog crashes. CleanJoin addresses this with three systems working in parallel.
When a player joins, nearby chunks are loaded asynchronously in the background so the main thread never has to wait for disk I/O. Instead of sending hundreds of entity packets in the first tick, the initial entity sync is spread across the first two seconds after join, with hostile mobs and players always arriving first. Distant passive mobs that no player is near have their AI temporarily suspended on a worker thread, reducing pathfinding and goal calculation overhead during peak load.
The mod is fully compatible with Arclight servers running both NeoForge mods and Bukkit plugins simultaneously. All writes back to the game state are safely routed to the main thread to avoid conflicts with the Bukkit event system.
评论 0
登录后参与评分
还没有评论,来抢沙发吧