Browse Source

Revert "Investigate throttling behaviour, pt. 0"

This reverts commit ca7a1d514a0c050f856d13f5fe25a380a3611113.
Matt Coburn 6 years ago
parent
commit
29a38b4c57
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/Native/enet.h

+ 2 - 3
Source/Native/enet.h

@@ -3083,9 +3083,8 @@ extern "C" {
 		timeout += host->serviceTime;
 
 		do {
-			// 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);
+			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: