Adjustments to reliable packets

This commit is contained in:
MysterD 2022-04-21 18:33:20 -07:00
parent c8a0e6da10
commit c292793470
2 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,7 @@
#define UNKNOWN_GLOBAL_INDEX ((u8)-1) #define UNKNOWN_GLOBAL_INDEX ((u8)-1)
#define UNKNOWN_NETWORK_INDEX ((u64)-1) #define UNKNOWN_NETWORK_INDEX ((u64)-1)
#define NETWORK_PLAYER_TIMEOUT 10 #define NETWORK_PLAYER_TIMEOUT 10
#define MAX_RX_SEQ_IDS 16 #define MAX_RX_SEQ_IDS 64
enum NetworkPlayerType { enum NetworkPlayerType {
NPT_UNKNOWN, NPT_UNKNOWN,

View File

@ -3,9 +3,7 @@
#include "pc/utils/misc.h" #include "pc/utils/misc.h"
#include "pc/debuglog.h" #include "pc/debuglog.h"
// two-player hack: the localIndex for resending packets can be 0... this means reply to last person received from. THIS WILL NOT WORK with more than two players #define RELIABLE_RESEND_RATE 0.33f
#define RELIABLE_RESEND_RATE 0.20f
#define MAX_RESEND_ATTEMPTS 10 #define MAX_RESEND_ATTEMPTS 10
struct PacketLinkedList { struct PacketLinkedList {