Annuus - Minecraft Network Performance Optimization
Annuus is a specialized mod that significantly improves network interaction in Minecraft, enhancing performance and making the game more accessible for running on large servers.
Compatibility and Requirements
The mod supports Minecraft version 1.21.x with Fabric and NeoForge loaders. When using Fabric, fabric-api installation is required, while for NeoForge, architectury-api is needed. If a player doesn't install Annuus on the client, network packets will transmit in standard mode, as in the vanilla version of the game.
Performance: Chunk Data Transmission
We conducted testing with various view distances: 10 (473 chunks), 12 (637 chunks), 16 (1057 chunks), and 32 (3725 chunks). Only fabric-api was used in the tests.
| Environment/Chunks | 473 | 637 | 1027 | 3725 |
|---|---|---|---|---|
| Vanilla Version | 35.03ms 13.94MB |
40.51ms 18.74MB |
72.57ms 31.66MB |
238.69ms 122.40MB |
| Annuus (Deflate 9) | 29.76ms 1.17MB |
50.46ms 2.39MB |
48.6ms 4.04MB |
163.31ms 15.98MB |
| Annuus (Deflate 1) | 36.09ms 2.21MB |
51.06ms 2.96MB |
57.94ms 4.99MB |
235.22ms 19.65MB |
Deflate 1 demonstrates lower CPU load, although its performance isn't always sufficient, so it's considered as a compression option
Block Updates
The more blocks are collected, the more advantages the Annuus protocol provides, especially when working with huge piston constructions
When updating chunk delta, 1229 blocks are collected each time:
| Environment/Blocks | 2455 | 7365 | 24550 | 78560 |
|---|---|---|---|---|
| Vanilla Version | 9.72KB | 29.16KB | 97.2KB | 311.06KB |
| Annuus (Deflate 9) | 6.79KB | 20.39KB | 67.97KB | 217.53KB |
| Annuus (Deflate 1) | 6.35KB | 19.07KB | 63.59KB | 203.5KB |
Recipe Synchronization
| Environment/Recipes | 1290 | 9587 |
|---|---|---|
| Vanilla Version | 105.73KB | 692.2KB |
| Replacement v1 (no_compress) |
94.4KB | 612.86KB |
| Replacement v1 (deflate_9) |
19.61KB | 135.9KB |
| Replacement v1 (deflate_1) |
24.11KB | 169.11KB |