Increase np timeout, amount of rx seq ids, and don't clear ordered packets on connected

This commit is contained in:
MysterD 2023-04-18 21:47:19 -07:00
parent 857509d60e
commit 0f71de2332
3 changed files with 3 additions and 4 deletions

View file

@ -299,7 +299,6 @@ u8 network_player_connected(enum NetworkPlayerType type, u8 globalIndex, u8 mode
}
for (s32 j = 0; j < MAX_RX_SEQ_IDS; j++) { np->rxSeqIds[j] = 0; np->rxPacketHash[j] = 0; }
packet_ordered_clear(globalIndex);
// set up network player pointers
if (type == NPT_LOCAL) {

View file

@ -8,9 +8,9 @@
#define UNKNOWN_LOCAL_INDEX ((u8)-1)
#define UNKNOWN_GLOBAL_INDEX ((u8)-1)
#define UNKNOWN_NETWORK_INDEX ((u64)-1)
#define NETWORK_PLAYER_TIMEOUT 10
#define NETWORK_PLAYER_TIMEOUT 15
#define NETWORK_PLAYER_PING_TIMEOUT 3
#define MAX_RX_SEQ_IDS 64
#define MAX_RX_SEQ_IDS 256
#define USE_REAL_PALETTE_VAR 0xFF
enum NetworkPlayerType {

View file

@ -4,7 +4,7 @@
//#define DISABLE_MODULE_LOG 1
#include "pc/debuglog.h"
#define PACKET_ORDERED_TIMEOUT 15
#define PACKET_ORDERED_TIMEOUT 30
struct OrderedPacketList {
struct Packet p;