AEP(自适应实体优先级)
AEP 是一款轻量级的服务端性能优化模组,旨在自动管理并减少由实体 Tick 和物理计算引起的负载。
与一刀切的优化方案不同,AEP 采用自适应节流系统。该模组仅在服务器需要时介入以减少工作量——主要是在服务器负载较高时(高 MSPT/TPS 下降期间)。当服务器运行顺畅时,实体和物品堆栈的行为保持正常。
当服务器出现压力时,AEP 会选择性地临时降低以下内容的 Tick 速率:
- 生物 AI: 对非玩家实体的寻路和常规行为 Tick 进行节流(生物可能每隔几个游戏 Tick 才执行一次 Tick)。
- 物品合并: 对物品实体搜索附近堆栈进行合并的过程进行节流,从而减少物理检测。
AEP 使用高 Mixin 优先级,在其节流逻辑在对应的原版方法运行之前应用,使其能够在检测到延迟后立即有效地减少服务器的工作量。
? 重要兼容性说明
AEP 与 Lithium 不兼容。
AEP 和 Lithium 都会修补相同的核心服务端循环。Lithium 的高级优化会完全覆盖并禁用 AEP 的逻辑,导致 AEP 失效,并造成 Minecraft 崩溃。 为了获得最佳性能,请勿将 AEP 与 Lithium 同时运行。
作者: Will5Plays
AEP (Adaptive Entity Prioritization)
AEP is a lightweight, server-side performance optimization mod designed to automatically manage and reduce load caused by entity ticking and physics.
Unlike blanket optimizations, AEP uses an adaptive throttling system. The mod only steps in to reduce work when the server needs it—primarily during periods of high server load (high MSPT/TPS drops). When the server runs smoothly, entities and item stacks behave normally.
When the server strains, AEP selectively and temporarily slows down the tick rate for:
- Mob AI: Pathfinding and general behavior ticks for non-player entities are throttled (mobs might only tick once every few game ticks).
- Item Merging: The process of item entities searching for nearby stacks to merge with is throttled, reducing physics checks.
AEP uses high mixin priority to apply its throttling logic before the corresponding vanilla methods run, making it effective at reducing server work immediately upon detection of lag.
? IMPORTANT COMPATIBILITY NOTE
AEP is NOT COMPATIBLE with Lithium.
Both AEP and Lithium patch the same core server loops. Lithium's advanced optimizations will completely override and disable AEP's logic, rendering AEP ineffective, and crashing Minecraft. For the best performance, do not run AEP alongside Lithium.
Creator: Will5Plays
评论 0
登录后参与评分
还没有评论,来抢沙发吧