Fixed some android memory errors and weapon factory bugs
This commit is contained in:
@@ -118,7 +118,7 @@ public class KryoClient implements ClientProvider{
|
||||
|
||||
@Override
|
||||
public Array<Address> discover(){
|
||||
List<InetAddress> list = client.discoverHosts(Vars.port, 5000);
|
||||
List<InetAddress> list = client.discoverHosts(Vars.port, 3000);
|
||||
ObjectSet<String> hostnames = new ObjectSet<>();
|
||||
Array<Address> result = new Array<>();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public class KryoServer implements ServerProvider {
|
||||
IntArray connections = new IntArray();
|
||||
|
||||
public KryoServer(){
|
||||
server = new Server();
|
||||
server = new Server(4096, 1024); //TODO tweak
|
||||
server.setDiscoveryHandler(new ServerDiscoveryHandler() {
|
||||
private ByteBuffer buffer = ByteBuffer.allocate(4);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user