diff --git a/src/net/net.h b/src/net/net.h index 1b3a7a46..8e449538 100644 --- a/src/net/net.h +++ b/src/net/net.h @@ -26,7 +26,8 @@ Enum(NET_SendFlag) { 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), }; diff --git a/src/pp/pp_sim/pp_sim_core.c b/src/pp/pp_sim/pp_sim_core.c index 579a578e..b392d018 100644 --- a/src/pp/pp_sim/pp_sim_core.c +++ b/src/pp/pp_sim/pp_sim_core.c @@ -866,7 +866,7 @@ void S_TickForever(WaveLaneCtx *lane) //- Collect & send snapshots { - u64 max_snapshot_size = NET_PacketSize / 2; + u64 snapshot_cutoff_threshold = NET_PacketSize / 2; PackedDeltaNode *delta_node = first_delta_node; u64 snapshot_start = 0; @@ -911,7 +911,7 @@ void S_TickForever(WaveLaneCtx *lane) next_len = next_delta_node->packed.len; } 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; } diff --git a/src/pp/pp_vis/pp_vis_core.c b/src/pp/pp_vis/pp_vis_core.c index 683a18bc..39df35aa 100644 --- a/src/pp/pp_vis/pp_vis_core.c +++ b/src/pp/pp_vis/pp_vis_core.c @@ -3100,7 +3100,7 @@ void V_TickForever(WaveLaneCtx *lane) //- Collect & send snapshots { - u64 max_snapshot_size = NET_PacketSize / 2; + u64 snapshot_cutoff_threshold = NET_PacketSize / 2; PackedDeltaNode *delta_node = first_delta_node; u64 snapshot_start = 0; @@ -3140,7 +3140,7 @@ void V_TickForever(WaveLaneCtx *lane) next_len = next_delta_node->packed.len; } 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; }