Reducing sending objects per frame from 20 to 1 again to reduce possibility of timeout on stressed systems

This commit is contained in:
zicodxx 2010-07-05 12:12:12 +00:00
parent d15778e03c
commit c209b4c319
2 changed files with 2 additions and 1 deletions

View file

@ -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
--------

View file

@ -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