Configuration
Hardware Compression

Hardware Compression Acceleration

Hardware compression acceleration is an optional function provided by PNX, which can accelerate data compression by using hardware SIMD on modern CPUs.

Why?

PNX is suitable for large servers. Many PNX servers host dozens or even hundreds of players at the same time, which means that each player generates a large amount of data. Due to the requirements of the Bedrock version, this data needs to be compressed before it can be sent to players. Additionally, when players run maps, a large amount of map data is generated and also needs to be compressed and decompressed frequently. This data that needs to be compressed or decompressed consumes a lot of CPU resources. Using hardware compression and decompression acceleration can greatly improve performance.

What CPUs can enable this?

If your CPU can enable hardware-accelerated compression, PNX will notify you at startup.

When your CPU supports one or more of the following instruction sets, hardware-accelerated compression can be enabled. The more instruction sets supported, the greater the performance improvement:

Instruction SetExplanation
AVX512Intel/AMD
AVX2Intel/AMD
AVXIntel/AMD
SSE4.2Intel/AMD
SSE4.1Intel/AMD
SSSE3Intel/AMD
SSE3Intel/AMD
SSE2Intel/AMD
SSEIntel/AMD
SVEARMv8.2+
NEONARMv7+

How to enable it?

Modify the configuration file nukkit.yml.

Set zlib-provider in network to 3.

Here is what it looks like:

nukkit.yml
network:
zlib-provider: 3