
Modrinth · Minecraft mod
OptimizeMod
Reduces server lag by throttling distant entity ticks, suspending mob AI, and limiting particles.
Quick answer
Which OptimizeMod release matches 1.21.2?
OptimizeMod 1.0.0 targets 1.21.1, 1.21.10, 1.21.11 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is OptimizeMod required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does OptimizeMod 1.0.0 need?
1.0.0 on 1.21.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add OptimizeMod without breaking your instance.
Built for OptimizeMod 1.0.0 on 1.21.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.0. It targets 1.21.1, 1.21.10, 1.21.11 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.
About this project
What does OptimizeMod add?
OptimizeMod
Keep distant simulation quiet so active gameplay gets more CPU time.
OptimizeMod is a lightweight Fabric optimization mod for Minecraft 1.21.1.
Its goal is simple: reduce work on entities and effects that players are not actively interacting with.
What OptimizeMod changes
1. Distance-based movement tick throttling (EntityTickMixin)
Hook: LivingEntity.tickMovement()
- Players are excluded.
- If no player is found within sleep distance (
96blocks by default), non-player living entities skip movement ticks (ENTITY_TICK_SKIP = 4by default). - If a player is present but farther than reduce distance (
48blocks), movement updates are throttled (roughly every other tick).
2. Distance-based AI throttling (MobEntityAIMixin)
Hook: LivingEntity.tickNewAi() (for MobEntity)
- If no player is found within reduce distance (
48blocks), AI updates are cancelled for that tick. - In mid-distance ranges, AI updates are partially throttled (every other tick).
- While throttled/cancelled,
despawnCounteris reset to avoid unwanted despawn side effects.
3. Particle throughput cap (ParticleManagerMixin, client)
Hook: ParticleManager.addParticle(...)
- Particle creation is capped with a local counter (
MAX_PARTICLES_LIMIT = 4000). - Excess particle spawn requests are dropped when the cap is exceeded.
- Intended to reduce client stutter from extreme particle bursts.
Important accuracy notes
- OptimizeMod does not guarantee fixed FPS/TPS/MSPT improvements.
- Real impact depends on mob density, player spread, chunk activity, modpack composition, JVM/runtime settings, and test scenario.
- Behavior changes for distant mobs/entities are intentional by design.
Reproducible evaluation (recommended)
To validate impact on your setup, compare baseline vs. OptimizeMod with identical conditions:
- Same Java version, JVM args, mod list, seed, and config.
- Same scenario and duration (recommended: 20-30 minutes per run).
- At least 3 baseline runs + 3 OptimizeMod runs.
- Collect comparable metrics:
- p50/p95 MSPT (
sparkor equivalent) - CPU usage (process/system)
- FPS/frame-time (client tests)
- Compare distributions (median/p95), not one-off spikes.
Installation
- Install Fabric Loader for Minecraft 1.21.1
- Install Fabric API
- Place the OptimizeMod jar in
mods/
Compatibility
- Designed to complement other optimization mods.
- As with any mixin-based mod, test your exact modpack before production deployment.
Project description from Modrinth.
Pick your setup
OptimizeMod by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.20.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
OptimizeMod versions and loaders
1.0.0
optimizemod-1.0.0.jar
19 Feb 2026
Looking for an older file? The official Modrinth project page is in Resources.