Enumeration Casemigueldeicaza.swiftgodot 0.45.0SwiftGodot
zstd
Zstandard compression. Note that this algorithm is not very efficient on packets smaller than 4 KB. Therefore, it’s recommended to use other compression algorithms in most cases.
ENetConnection.swift:23case zstd
Other cases
case none
No compression. This uses the most bandwidth, but has the upside of requiring the fewest CPU resources. This option may also be used to make network debugging using tools like Wireshark easier.
case rangeCoder
ENet’s built-in range encoding. Works well on small packets, but is not the most efficient algorithm on packets larger than 4 KB.
case fastlz
FastLZ compression. This option uses less CPU resources compared to .compressZlib, at the expense of using more bandwidth.
case zlib
Zlib compression. This option uses less bandwidth compared to .compressFastlz, at the expense of using more CPU resources.