Browse Source

Investigate throttling behaviour, pt. 0

Matt Coburn 6 years ago
parent
commit
ca7a1d514a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Source/Native/enet.h

+ 3 - 2
Source/Native/enet.h

@@ -3083,8 +3083,9 @@ extern "C" {
 		timeout += host->serviceTime;
 
 		do {
-			if (ENET_TIME_DIFFERENCE(host->serviceTime, host->bandwidthThrottleEpoch) >= ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL)
-				enet_host_bandwidth_throttle(host);
+			// Temporary snip by c6burns & Coburn: Investigating reliable UDP being throttled when under heavy stress
+			// if (ENET_TIME_DIFFERENCE(host->serviceTime, host->bandwidthThrottleEpoch) >= ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL)
+			//	enet_host_bandwidth_throttle(host);
 
 			switch (enet_protocol_send_outgoing_commands(host, event, 1)) {
 			case 1: