You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Reserves a number of connection slots for internal use (e.g., NPCs).
481
+
/// Reserved slots are subtracted from the maximum peer limit when accepting new connections.
482
+
/// \param[in] count: The number of slots to reserve.
483
+
voidReserveSlots(unsignedshort count) override;
484
+
#endif
485
+
479
486
// --------------------------------------------------------------------------------------------EVERYTHING AFTER THIS COMMENT IS FOR INTERNAL USE ONLY--------------------------------------------------------------------------------------------
/// Reserves a number of connection slots for internal use (e.g., NPCs).
453
+
/// Reserved slots are subtracted from the maximum peer limit when accepting new connections.
454
+
/// \param[in] count: The number of slots to reserve.
455
+
virtualvoidReserveSlots(unsignedshort count) = 0;
456
+
#endif
457
+
451
458
// --------------------------------------------------------------------------------------------EVERYTHING AFTER THIS COMMENT IS FOR INTERNAL USE ONLY--------------------------------------------------------------------------------------------
staticconstfloatPACKETLOSS_TOLERANCE=.02f; // What percentile packetloss we are willing to accept as background noise.
48
-
staticconstdoubleMINIMUM_SEND_BPS=14400.0; // Won't go below this send rate
49
-
staticconstdoubleSTARTING_SEND_BPS=28800.0; // What send rate to start at.
50
48
staticconstfloatPING_MULTIPLIER_TO_RESEND=3.0; // So internet ping variation doesn't cause needless resends
51
49
staticconst RakNetTime MIN_PING_TO_RESEND=30; // So system timer changes and CPU lag don't send needless resends
52
50
staticconst RakNetTimeNS TIME_TO_NEW_SAMPLE=500000; // How many ns to wait before starting a new sample. This way buffers have time to overflow or relax at the new send rate, if they are indeed going to overflow.
0 commit comments