
Adaptive Entity Prioritization (AEP)
ArchivedAEP dynamically reduces lag by throttling mob AI and item merge checks based on server strain.
1
Compatibility
Changes
v1.0.0 (Initial Release) This is the debut release of AEP, a server-side performance mod designed to stabilize TPS and MSPT during periods of high load.
✨ New Features Adaptive Throttling Core: Implements a system to dynamically monitor server tick time (MSPT) and automatically adjust the throttling level of non-critical entity processes.
Prioritized Entity Ticking: Introduces a high-priority mixin (priority = 2000) to the PathAwareEntity class (MobAiMixin). This logic selectively cancels mob AI ticks based on the calculated server load, ensuring your custom throttling logic runs last, effectively overriding common optimization mods.
Adaptive Item Merging: Implements throttling on the ItemEntity class (ItemMergeMixin). This limits the frequency at which items check for nearby stacks to merge with, significantly reducing physics processing during lag spikes.
ServerTickTracker: Includes a simple utility class (MinecraftServerMixin) to track and report current server load, enabling the adaptive system.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:1XY30bSl:WP2qik92"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:1XY30bSl:WP2qik92"
}
