formatting
This commit is contained in:
parent
d829c3c1a8
commit
4fad7cf6de
@ -26,7 +26,8 @@ Enum(NET_SendFlag)
|
|||||||
{
|
{
|
||||||
NET_SendFlag_None = 0,
|
NET_SendFlag_None = 0,
|
||||||
|
|
||||||
// NOTE: Messages marked "raw" that exceed packet size will drop
|
// Raw messages send unreliably and immediately
|
||||||
|
// NOTE: Raw message data exceeding packet size will drop
|
||||||
NET_SendFlag_Raw = (1 << 0),
|
NET_SendFlag_Raw = (1 << 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -866,7 +866,7 @@ void S_TickForever(WaveLaneCtx *lane)
|
|||||||
|
|
||||||
//- Collect & send snapshots
|
//- Collect & send snapshots
|
||||||
{
|
{
|
||||||
u64 max_snapshot_size = NET_PacketSize / 2;
|
u64 snapshot_cutoff_threshold = NET_PacketSize / 2;
|
||||||
PackedDeltaNode *delta_node = first_delta_node;
|
PackedDeltaNode *delta_node = first_delta_node;
|
||||||
|
|
||||||
u64 snapshot_start = 0;
|
u64 snapshot_start = 0;
|
||||||
@ -911,7 +911,7 @@ void S_TickForever(WaveLaneCtx *lane)
|
|||||||
next_len = next_delta_node->packed.len;
|
next_len = next_delta_node->packed.len;
|
||||||
}
|
}
|
||||||
u64 cur_snapshot_len = BB_GetNumBytesWritten(&packer_bbw);
|
u64 cur_snapshot_len = BB_GetNumBytesWritten(&packer_bbw);
|
||||||
if ((cur_snapshot_len - snapshot_start) + next_len >= max_snapshot_size)
|
if ((cur_snapshot_len - snapshot_start) + next_len >= snapshot_cutoff_threshold)
|
||||||
{
|
{
|
||||||
new_snapshot = 1;
|
new_snapshot = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3100,7 +3100,7 @@ void V_TickForever(WaveLaneCtx *lane)
|
|||||||
|
|
||||||
//- Collect & send snapshots
|
//- Collect & send snapshots
|
||||||
{
|
{
|
||||||
u64 max_snapshot_size = NET_PacketSize / 2;
|
u64 snapshot_cutoff_threshold = NET_PacketSize / 2;
|
||||||
PackedDeltaNode *delta_node = first_delta_node;
|
PackedDeltaNode *delta_node = first_delta_node;
|
||||||
|
|
||||||
u64 snapshot_start = 0;
|
u64 snapshot_start = 0;
|
||||||
@ -3140,7 +3140,7 @@ void V_TickForever(WaveLaneCtx *lane)
|
|||||||
next_len = next_delta_node->packed.len;
|
next_len = next_delta_node->packed.len;
|
||||||
}
|
}
|
||||||
u64 cur_snapshot_len = BB_GetNumBytesWritten(&packer_bbw);
|
u64 cur_snapshot_len = BB_GetNumBytesWritten(&packer_bbw);
|
||||||
if ((cur_snapshot_len - snapshot_start) + next_len >= max_snapshot_size)
|
if ((cur_snapshot_len - snapshot_start) + next_len >= snapshot_cutoff_threshold)
|
||||||
{
|
{
|
||||||
new_snapshot = 1;
|
new_snapshot = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user