From c209b4c3194ef7dad89f40dc318cb309b625f1f8 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Mon, 5 Jul 2010 12:12:12 +0000 Subject: [PATCH] Reducing sending objects per frame from 20 to 1 again to reduce possibility of timeout on stressed systems --- CHANGELOG.txt | 1 + main/net_udp.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a8b5a4239..d45a9cad0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,7 @@ D1X-Rebirth Changelog main/kconfig.c: Fixing issue when assigning mouse button if a citem is still pointed out; Fixing still processing key commands even if we want to assign a key; After setting mouse button, reset mouse state properly arch/sdl/digi_mixer_music.c: Fixing issue introduced in rev1139: Game could of course not open music files which are not inside Searchpath or added to it - re-added playing over absolute path main/net_ipx.c, main/net_udp.c: When selecting coop game mode, make sure that besides max players menu values also actual player number is set and menu text is updated properly +main/net_udp.h: Reducing sending objects per frame from 20 to 1 again to reduce possibility of timeout on stressed systems 20100704 -------- diff --git a/main/net_udp.h b/main/net_udp.h index b8d2e79ab..4ba1ae902 100644 --- a/main/net_udp.h +++ b/main/net_udp.h @@ -35,7 +35,7 @@ int net_udp_level_sync(); #define UDP_NETGAMES_PAGES 50 // Pages available on Netlist (UDP_MAX_NETGAMES/UDP_NETGAMES_PPAGE) #define UDP_TIMEOUT (10*F1_0) // 10 seconds disconnect timeout #define UDP_MDATA_STOR_QUEUE_SIZE 500 // Store up to 500 MDATA packets -#define UDP_OBJ_PACKETS_PER_FRAME 20 +#define UDP_OBJ_PACKETS_PER_FRAME 1 // Following are static defines for the buffer size of various packets. IF you change the packets, you must change the size, too. #define UPKT_MAX_SIZE 1024 // Max size for a packet - just for the buffers