Adjustments to reliable packets
This commit is contained in:
parent
c8a0e6da10
commit
c292793470
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue