KnowledgebaseReducing Lag

How to Optimize your Paper Configuration to Reduce Lag

How to Optimize your Paper Configuration to Reduce Lag

Reducing Lag
·
Sep 11, 2024
·
32 min read

One of the main strengths of running a Paper server over a Vanilla one is the sheer amount of customisability offered from the Paper configuration files. As a Paper server owner, this gives you the ability to seriously fine-tune your server performance, usually by cutting corners off of bloated gameplay features.

Please Note

The configuration options discussed in this guide only apply to servers using the Paper Minecraft server type or a PaperMC fork, like Purpur.

#Paper Options and their Optimizations

Below is a list of configuration options that can be found in the paper-world-defaults.yml configuration file. These options will be applied to each world individually when they are first generated on Paper. If a world already has a paper-world.yml settings file generated, changing the defaults file will not affect it.

You can locate this config file at /config/paper-world-defaults.yml

OptionDescriptionDefaultOptimized / Recommended
max-auto-save-chunks-per-tickSlows down how often chunks are saved during world save. Don’t go below 8 to avoid data loss.248
optimize-explosionsUses Paper’s efficient explosion handling. Less important after 1.15, but still beneficial.falsetrue
tick-rates: mob-spawnerIncreases time between mob spawner ticks. Only increase if experiencing lag.12
tick-rates: container-updateControls how often container GUIs (like chests) update. Higher values reduce server load, but avoid going above 3–4.13
max-entity-collisionsLimits how many entities can collide at once. Helps with performance in crammed mob areas.82
tick-rates: grass-spreadIncreases time between grass spreading ticks to reduce load.14
non-player-arrow-despawn-rateTime in ticks before non-player arrows despawn. Useful to reduce entity lag.default60
creative-arrow-despawn-rateSame as above, but for arrows shot in creative mode.default60
hopper.disable-move-eventPrevents hoppers from checking every slot each tick. Improves performance significantly.falsetrue
prevent-moving-into-unloaded-chunksStops players from entering unloaded chunks, preventing potential lag spikes.falsetrue
entities: armor-stands: tickDisables ticking for armour stands (only needed for water interaction). Frees up performance.truefalse
per-player-mob-spawnsUses per-player mob spawns to balance mob farms and prevent griefing of server-wide spawns.falsetrue
anti-xrayPaper's built-in anti-xray system. More efficient than plugins.falsetrue

While running a Paper Minecraft server, you will also have access to some additional configuration files, which can also be optimized. Feel free to refer to the following guides for more resources on how to further optimize your Paper Minecraft server:

Rejoindre Discord