From: fgsfds Date: Thu, 17 Aug 2017 18:25:26 +0000 (+0300) Subject: don't flush enet every message X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=42057f398fd17568bb3dbc00b6ffd8c97a99c5e1;p=d2df-sdl.git don't flush enet every message --- diff --git a/src/game/g_net.pas b/src/game/g_net.pas index 1de6e98..b71d541 100644 --- a/src/game/g_net.pas +++ b/src/game/g_net.pas @@ -447,7 +447,7 @@ begin end; if NetDump then g_Net_DumpSendBuffer(); - g_Net_Flush(); + // g_Net_Flush(); e_Buffer_Clear(@NetOut); end; @@ -668,7 +668,7 @@ begin enet_peer_send(NetPeer, Chan, P); if NetDump then g_Net_DumpSendBuffer(); - g_Net_Flush(); + // g_Net_Flush(); e_Buffer_Clear(@NetOut); end; @@ -714,7 +714,7 @@ begin end; end; end; - g_Net_Flush(); + // g_Net_Flush(); end; function g_Net_Connect(IP: string; Port: enet_uint16): Boolean;