Update sync timings to more reasonable values, especially for the score.

2.3: r11016


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@11023 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2010-06-23 03:09:51 +00:00 committed by Git SVN Gateway
parent 02c8b519f5
commit 452fd55e68
1 changed files with 6 additions and 8 deletions

View File

@ -84,14 +84,12 @@ static UDWORD averagePing(void);
// Defined numeric values
// NOTE / FIXME: Current MP games are locked at 45ms
#define MP_FPS_LOCK 45
#define AV_PING_FREQUENCY MP_FPS_LOCK * 1000 // how often to update average pingtimes. in approx millisecs.
#define PING_FREQUENCY MP_FPS_LOCK * 600 // how often to update pingtimes. in approx millisecs.
#define STRUCT_FREQUENCY MP_FPS_LOCK * 10 // how often (ms) to send a structure check.
#define DROID_FREQUENCY MP_FPS_LOCK * 7 // how ofter (ms) to send droid checks
#define POWER_FREQUENCY MP_FPS_LOCK * 14 // how often to send power levels
#define SCORE_FREQUENCY MP_FPS_LOCK * 2400 // how often to update global score.
#define SYNC_PANIC 40000 // maximum time before doing a dirty fix. [not even used!]
#define AV_PING_FREQUENCY MP_FPS_LOCK * 400 // how often to update average pingtimes (host only, when players join)
#define PING_FREQUENCY MP_FPS_LOCK * 400 // how often to update pingtimes. (About every ~1.8 secs)
#define STRUCT_FREQUENCY MP_FPS_LOCK * 10 // how often to send a structure check. (About every 450ms)
#define DROID_FREQUENCY MP_FPS_LOCK * 7 // how often to send droid checks.(About every 315ms)
#define POWER_FREQUENCY MP_FPS_LOCK * 14 // how often to send power levels (About every 630ms)
#define SCORE_FREQUENCY MP_FPS_LOCK * 100 // how often to update global score. (About every ~4.5 secs)
static UDWORD PingSend[MAX_PLAYERS]; //stores the time the ping was called.