Difference between revisions of "enet.peer:throttle configure"

(Created page with "Changes the probability at which unreliable packets should not be dropped. == Function == === Synopsis === <source lang="lua"> peer:throttle_configure(interval, acceleration, dec...")
 
m
Line 7: Line 7:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|number|interval|Interval in milliseconds to measure lowest mean [[enet.peer:round_trip_time | RTT]].}}
 
{{param|number|interval|Interval in milliseconds to measure lowest mean [[enet.peer:round_trip_time | RTT]].}}
{{param|number|acceleration|Rate at which to increase throttle probability as mean [[enet.peer:round_trip_time | RTT]] declines}}
+
{{param|number|acceleration|Rate at which to increase throttle probability as mean [[enet.peer:round_trip_time | RTT]] declines.}}
 
{{param|number|deceleration|Rate at which to decrease throttle probability as mean [[enet.peer:round_trip_time | RTT]] increases.}}
 
{{param|number|deceleration|Rate at which to decrease throttle probability as mean [[enet.peer:round_trip_time | RTT]] increases.}}
 
=== Returns ===
 
=== Returns ===

Revision as of 04:47, 9 October 2014

Changes the probability at which unreliable packets should not be dropped.

Function

Synopsis

peer:throttle_configure(interval, acceleration, deceleration)

Arguments

number interval
Interval in milliseconds to measure lowest mean RTT.
number acceleration
Rate at which to increase throttle probability as mean RTT declines.
number deceleration
Rate at which to decrease throttle probability as mean RTT increases.

Returns

None

See Also

Other Languages