How do I increase the buffer size in Server/Client constructor in Kryonet?
Pass larger values than the defaults to the overloaded constructors.
new Client()
is equivalent to new Client(8192, 2048)
new Server()
is equivalent to new Server(16384, 2048)
See the kryonet Javadocs for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With