Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
New default compression-threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed Apr 26, 2019
1 parent 87ddaf8 commit 8a2e0c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions users/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ These settings mostly cover the basic, most essential settings of the proxy.
+---------------------------+------------+----------+----------------------------------------+
| Setting name | Type | Default | Description |
+===========================+============+==========+========================================+
| ``compression-threshold`` | Integer | ``1024`` | This is the minimum size (in bytes) |
| ``compression-threshold`` | Integer | ``256`` | This is the minimum size (in bytes) |
| | | | that a packet has to be before the |
| | | | proxy compresses it. Minecraft uses |
| | | | 256 bytes by default. Velocity uses a |
| | | | higher value for efficiency. |
| | | | 256 bytes by default. |
+---------------------------+------------+----------+----------------------------------------+
| ``compression-level`` | Integer | ``-1`` | This setting indicates what ``zlib`` |
| | | | compression level the proxy should use |
Expand Down Expand Up @@ -194,7 +193,7 @@ Below is the default configuration file for Velocity, ``velocity.toml``.
[advanced]
# How large a Minecraft packet has to be before we compress it. Setting this to zero will compress all packets, and
# setting it to -1 will disable compression entirely.
compression-threshold = 1024
compression-threshold = 256
# How much compression should be done (from 0-9). The default is -1, which uses zlib's default level of 6.
compression-level = -1
Expand Down

0 comments on commit 8a2e0c1

Please sign in to comment.