Implemented scalable snapshot sizes
This commit is contained in:
@@ -54,7 +54,7 @@ public class KryoClient implements ClientProvider{
|
||||
}
|
||||
};
|
||||
|
||||
client = new Client(8192, 2048, connection -> new ByteSerializer());
|
||||
client = new Client(8192, 4096, connection -> new ByteSerializer());
|
||||
client.setDiscoveryHandler(handler);
|
||||
|
||||
Listener listener = new Listener(){
|
||||
|
||||
@@ -52,7 +52,7 @@ public class KryoServer implements ServerProvider {
|
||||
int lastconnection = 0;
|
||||
|
||||
public KryoServer(){
|
||||
server = new Server(4096*2, 2048, connection -> new ByteSerializer());
|
||||
server = new Server(4096*2, 4096, connection -> new ByteSerializer());
|
||||
server.setDiscoveryHandler((datagramChannel, fromAddress) -> {
|
||||
ByteBuffer buffer = NetworkIO.writeServerData();
|
||||
buffer.position(0);
|
||||
|
||||
Reference in New Issue
Block a user