Bladeren bron

Redux of Winterleaf's PR 1001, with the suggested updated values.

Areloch 10 jaren geleden
bovenliggende
commit
859e653bd7
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      Engine/source/console/sim.h
  2. 1 1
      Engine/source/sim/netConnection.cpp
  3. 1 1
      Engine/source/sim/netConnection.h

+ 1 - 1
Engine/source/console/sim.h

@@ -64,7 +64,7 @@ typedef U32 SimObjectId;
 enum SimObjectsConstants
 enum SimObjectsConstants
 {
 {
    DataBlockObjectIdFirst = 3,
    DataBlockObjectIdFirst = 3,
-   DataBlockObjectIdBitSize = 10,
+   DataBlockObjectIdBitSize = 14,
    DataBlockObjectIdLast = DataBlockObjectIdFirst + (1 << DataBlockObjectIdBitSize) - 1,
    DataBlockObjectIdLast = DataBlockObjectIdFirst + (1 << DataBlockObjectIdBitSize) - 1,
 
 
    MessageObjectIdFirst = DataBlockObjectIdLast + 1,
    MessageObjectIdFirst = DataBlockObjectIdLast + 1,

+ 1 - 1
Engine/source/sim/netConnection.cpp

@@ -215,7 +215,7 @@ U32 NetConnection::getSequence()
 static U32 gPacketRateToServer = 32;
 static U32 gPacketRateToServer = 32;
 static U32 gPacketUpdateDelayToServer = 32;
 static U32 gPacketUpdateDelayToServer = 32;
 static U32 gPacketRateToClient = 10;
 static U32 gPacketRateToClient = 10;
-static U32 gPacketSize = 200;
+static U32 gPacketSize = 508;
 
 
 void NetConnection::consoleInit()
 void NetConnection::consoleInit()
 {
 {

+ 1 - 1
Engine/source/sim/netConnection.h

@@ -818,7 +818,7 @@ public:
    /// Some configuration values.
    /// Some configuration values.
    enum GhostConstants
    enum GhostConstants
    {
    {
-      GhostIdBitSize = 12,
+      GhostIdBitSize = 18, //262,144 ghosts
       MaxGhostCount = 1 << GhostIdBitSize, //4096,
       MaxGhostCount = 1 << GhostIdBitSize, //4096,
       GhostLookupTableSize = 1 << GhostIdBitSize, //4096
       GhostLookupTableSize = 1 << GhostIdBitSize, //4096
       GhostIndexBitSize = 4 // number of bits GhostIdBitSize-3 fits into
       GhostIndexBitSize = 4 // number of bits GhostIdBitSize-3 fits into