Browse Source

Reasonable default packet threshold (pt 1)

Managed world.
Coburn 5 years ago
parent
commit
34d4af8115
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Source/Managed/ENet.cs

+ 4 - 2
Source/Managed/ENet.cs

@@ -966,7 +966,8 @@ namespace ENet
     {
         public const uint maxChannelCount = 0xFF;
         public const uint maxPeers = 0xFFF;
-        public const uint maxPacketSize = 32 * 1024 * 1024;
+        public const uint maxPacketSize = 32 * 1024 * 1024;	    
+    	public const uint throttleThreshold = 20; 		// Reasonable threshold to help reduce throttling.
         public const uint throttleScale = 32;
         public const uint throttleAcceleration = 2;
         public const uint throttleDeceleration = 2;
@@ -974,7 +975,8 @@ namespace ENet
         public const uint timeoutLimit = 32;
         public const uint timeoutMinimum = 5000;
         public const uint timeoutMaximum = 30000;
-        public const uint version = (2 << 16) | (3 << 8) | (0);
+	    
+        public const uint version = (2 << 16) | (4 << 8) | (0);
 
         public static bool Initialize()
         {