Add kcpInterval to the config

This commit is contained in:
Melledy
2022-07-21 18:39:39 -07:00
parent 8651cdd12b
commit c0418067d6
2 changed files with 6 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ public final class GameServer extends KcpServer {
public GameServer(InetSocketAddress address) {
ChannelConfig channelConfig = new ChannelConfig();
channelConfig.nodelay(true, 20, 2, true);
channelConfig.nodelay(true, GAME_INFO.kcpInterval, 2, true);
channelConfig.setMtu(1400);
channelConfig.setSndwnd(256);
channelConfig.setRcvwnd(256);