File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : Optimising ShreddedPaper
3+ layout : default
4+ parent : ShreddedPaper
5+ ---
6+
7+ # Optimising ShreddedPaper
8+
9+ Various changes you can make to improve the performance of ShreddedPaper
10+
11+ ### netty-threads (required change for 250+ players)
12+
13+ Increasing the number of netty threads allows the server to handle more packets.
14+ If the server does not have enough netty threads, the tps will start to drop
15+ while the server tries to send more packets.
16+
17+ ``` yml
18+ # spigot.yml
19+ settings :
20+ netty-threads : 32
21+ ` ` `
22+
23+ ### maximum-trackers-per-entity
24+
25+ When there are a signficiant number of players in such a small area that they
26+ can all see eachother, a lot of resources are spent rendering each player to
27+ eachother at an exponential rate. Cap the number of players each player can see.
28+ Increasing ` tracker-full-update-frequency` also decreases how often an expensive
29+ recalculation of what player can be seen is performed.
30+
31+ ` ` ` yml
32+ # shreddedpaper.yml
33+ optimizations:
34+ maximum-trackers-per-entity: 200
35+ tracker-full-update-frequency: 40
36+ ` ` `
37+
38+ # ## disable-vanish-api
39+
40+ The Bukkit vanish api (`Player.hidePlayer`) is inefficient. If you aren't using
41+ it, disable it.
42+
43+ ` ` ` yml
44+ # shreddedpaper.yml
45+ optimizations:
46+ disable-vanish-api: true
47+ ` ` `
48+
49+ # ## ticks-per
50+
51+ Trying to spawn mobs is expensive. Reducing how often they try to spawn saves a
52+ lot of resources.
53+
54+ ` ` ` yml
55+ # bukkit.yml
56+ ticks-per:
57+ animal-spawns: 400
58+ monster-spawns: 400
59+ water-spawns: 400
60+ water-ambient-spawns: 400
61+ water-underground-creature-spawns: 400
62+ axolotl-spawns: 400
63+ ambient-spawns: 400
64+ ` ` `
65+
66+ # ## simulation-distance
67+
68+ The less chunks you're ticking, the more performant the server.
69+
70+ ` ` ` yml
71+ # server.properties
72+ simulation-distance=2
73+ ` ` `
74+
75+ # ## view-distance
76+
77+ The less chunks you're sending the players, the more performant the server.
78+
79+ ` ` ` yml
80+ # server.properties
81+ view-distance=8
82+ ` ` `
You can’t perform that action at this time.
0 commit comments