mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
Increased buffer size to 8192 to accommodate larger d2s streams
This commit is contained in:
parent
65e58e8bbe
commit
ad9a0be434
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user