Archiviert
13
0

Use more threads for netty to help with lag.

Dieser Commit ist enthalten in:
md_5 2013-02-17 16:35:11 +11:00
Ursprung e942bf6641
Commit 57e025bb17

Datei anzeigen

@ -1,4 +1,4 @@
From aab6f0b02be084cfd920a2b185433705e2dd6534 Mon Sep 17 00:00:00 2001 From bc0a1d00c692dcef71565d3288b5c52ceb0e699b Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au> From: md_5 <md_5@live.com.au>
Date: Thu, 14 Feb 2013 17:32:20 +1100 Date: Thu, 14 Feb 2013 17:32:20 +1100
Subject: [PATCH] Netty Subject: [PATCH] Netty
@ -427,7 +427,7 @@ index 0000000..027cc31
+} +}
diff --git a/src/main/java/org/spigotmc/netty/NettyServerConnection.java b/src/main/java/org/spigotmc/netty/NettyServerConnection.java diff --git a/src/main/java/org/spigotmc/netty/NettyServerConnection.java b/src/main/java/org/spigotmc/netty/NettyServerConnection.java
new file mode 100644 new file mode 100644
index 0000000..a7f0c90 index 0000000..edf4f85
--- /dev/null --- /dev/null
+++ b/src/main/java/org/spigotmc/netty/NettyServerConnection.java +++ b/src/main/java/org/spigotmc/netty/NettyServerConnection.java
@@ -0,0 +1,105 @@ @@ -0,0 +1,105 @@
@ -486,7 +486,7 @@ index 0000000..a7f0c90
+ .addLast("encoder", new PacketEncoder()) + .addLast("encoder", new PacketEncoder())
+ .addLast("manager", new NettyNetworkManager()); + .addLast("manager", new NettyNetworkManager());
+ } + }
+ }).group(new NioEventLoopGroup()).localAddress(host, port).bind(); + }).group(new NioEventLoopGroup(32)).localAddress(host, port).bind();
+ } + }
+ +
+ /** + /**