Implemented scalable snapshot sizes

This commit is contained in:
Anuken
2018-06-28 20:49:12 -04:00
parent fdf7173f14
commit ab82faf7ba
9 changed files with 124 additions and 11 deletions

View File

@@ -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(){

View File

@@ -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);