Performance tuning 101: view distance, ticks, and smooth gameplay
Performance tuning 101: view distance, ticks, and smooth gameplay
Lag is the villain of good Minecraft sessions. The good news: with a few smart tweaks, your server can feel butter‑smooth even with lots of activity. This guide explains what actually causes lag, the settings that matter most, and a step‑by‑step tuning routine you can follow whenever performance dips.
What “lag” really is
Minecraft servers run in ticks (20 ticks per second). When the server can’t complete all its work within 50 ms per tick, TPS drops below 20 and players feel lag: delayed block breaks, rubber‑banding, and slow mob AI. Your goal is to keep TPS near 20 by limiting how much work happens every tick.
Main sources of tick work:
- Entity processing: mobs, item drops, minecarts, projectiles
- Chunk loading/ticking: chunks loaded around players
- Redstone, farms, and tile entities: hoppers, furnaces, pistons, etc.
- Plugins/mods: events, timers, pathfinding changes
Golden rule: change one thing at a time
When tuning, make a single change, play for 10–15 minutes, and observe TPS. Document your change so you can roll back if it didn’t help.
Start with the big three
1) View distance
- Definition: How far (in chunks) the server sends terrain to players.
- Impact: More chunks loaded per player = more entities to tick.
- Recommendation: 8–10 for general play. Drop to 6–8 if TPS dips.
2) Simulation distance
- Definition: How far from players the game simulates mob AI, redstone, and crops.
- Impact: Lowering dramatically reduces tick work for farms.
- Recommendation: 6–8 for most servers; 5–6 for heavy modded or large groups.
3) Max players
- Definition: Player slot limit.
- Impact: More players = more chunks and entities.
- Recommendation: Set a realistic number. More slots doesn’t improve performance—only expectations.
Paper and Spigot: performance superpowers
If you use Paper (recommended), you get extra configuration to tame lag without changing gameplay much.
- `paper.yml`, `spigot.yml`, `bukkit.yml`: Tuning files with safe defaults.
- Use Paper’s “async” features and regionized activity to spread work across threads where possible.
- Reduce activation range for entities: limits how far from players mobs wake up.
Example safe tweaks (Paper):
- Entity activation range: modest reductions for monsters/animals
- Hopper tick rate: slightly slower hoppers reduce laggy item flows
- Merge radius for items/exp: merge floating items sooner to cut entity counts
Always back up before changes. Test on a clone if your server is busy.
Detect what’s actually heavy
Use built‑in profiling:
- Paper timings: `/timings on`, play for 5–10 minutes, then `/timings paste`. Open the report and look for top offenders (plugins, tasks, events).
- Spark (mod/plugin): Detailed CPU sampling and flame graphs for advanced diagnosis.
Clues from gameplay:
- Lag when many mobs gather? Lower mob caps or activation ranges.
- Lag near farms? Slow hoppers, reduce redstone clocks, space out mechanics.
- Lag on exploration? Lower view distance, pre‑generate chunks, or reduce world size.
Entity and farm sanity
- Avoid cramming thousands of mobs in a single space (entity cramming limits exist for a reason).
- Use water streams and rails over massive hopper fields.
- Turn off always‑on redstone clocks; use player‑triggered designs.
- Curb auto‑breeders and villager mega trading halls.
Chunk strategy
- World border: Limit world size to keep files and memory manageable.
- Pre‑generation: Generate chunks around spawn or popular routes to reduce runtime spikes during exploration.
- Trim unused chunks periodically to reclaim space.
Plugins and mods: quality over quantity
- Fewer, better plugins beat a giant pile.
- Remove abandoned or duplicate functionality.
- Update intentionally, not automatically; read changelogs.
- Prefer plugins/mods known for performance (e.g., Paper ecosystem, Lithium/Sodium/Starlight for Fabric on clients; Lithium/FerriteCore on servers where applicable).
Hardware reality check
- CPU speed matters more than core count for tick speed.
- RAM helps with modpacks and player concurrency, but more RAM can mask memory leaks.
- Disk speed affects world saves and chunk access; SSDs are essential.
Network and connection feel
- Even with perfect TPS, high ping feels laggy. Choose regions close to players.
- Avoid over‑aggressive anti‑cheat settings that rubber‑band players.
- Keep your server address via a custom domain; switch regions later without changing players’ bookmarks.
A practical tuning routine
1. Measure: Note TPS, player count, view/simulation distances.
2. Reduce distances: Drop view by 2 and simulation by 1. Test again.
3. Profile: Use Paper timings to spot heavy plugins/tasks.
4. Simplify farms: Slow hoppers, remove laggy clocks, reduce entity piles.
5. Trim the plugin/mod list: Disable non‑essential items and retest.
6. Pre‑gen chunks: Especially if exploration is a lag source.
7. Schedule restarts: Once nightly can clear gradual memory bloat.
8. Scale up thoughtfully: If you’ve optimized and still struggle, consider more resources.
Sample configurations
Survival with friends (Paper):
- View distance: 8
- Simulation distance: 6
- Merge radius: modestly higher
- Hopper cooldown: slightly higher
- EssentialsX, LuckPerms, WorldEdit/WorldGuard, Vault
Light modpack (Fabric/Forge):
- View distance: 8
- Simulation distance: 5–6
- Fabric: Lithium, FerriteCore; Forge: use performance equivalents
- Avoid huge automation early; grow slowly and measure
Minigames server (Paper):
- View distance: 6–8 depending on arenas
- Simulation distance: 5–6
- Use per‑world settings to isolate heavy arenas
Teach your players good habits
- Spread out mega builds and farms.
- Clean up item drops after projects.
- Respect region protections and community rules.
- Report laggy spots so you can investigate together.
Checklist for a smooth server
- [ ] Keep TPS near 20 during normal play
- [ ] View 8–10, Sim 6–8 (lower if needed)
- [ ] Use Paper timings to profile regularly
- [ ] Limit hoppers, redstone clocks, and mob cramming
- [ ] Pre‑generate popular areas
- [ ] Curate plugins/mods; update intentionally
- [ ] Nightly restart (optional) and backups enabled
With a steady routine and a few smart defaults, you’ll keep your world responsive and fun—even when the dragon fight gets chaotic and everyone’s throwing snowballs.
About HostChicken Editorial Team
HostChicken Editorial Team contributes to the HostChicken guides, helping gamers master their servers.