Increased buffer size to 8192 to accommodate larger d2s streams

This commit is contained in:
Collin Smith 2019-12-30 00:48:08 -08:00
parent 65e58e8bbe
commit ad9a0be434
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ public class ClientNetworkSyncronizer extends IntervalSystem {
try {
D2S d2s = Riiablo.charData.getD2S();
FlatBufferBuilder builder = new FlatBufferBuilder();
FlatBufferBuilder builder = new FlatBufferBuilder(8192);
int charNameOffset = builder.createString(d2s.header.name);
int entityId = Riiablo.game.player;

View File

@ -488,7 +488,7 @@ public class D2GS extends ApplicationAdapter {
int id;
Socket socket;
ByteBuffer buffer = ByteBuffer.allocate(4096);
ByteBuffer buffer = ByteBuffer.allocate(8192);
volatile boolean kill = false;
Client(int id, Socket socket) {