improved demo recording
The demo data is collected, hashed and compressed fully in memory, mostly in a worker thread. While in memory, each demo is identified by an unique sequence number, which is, for example, used to request a download by the client. If so configured, the demo is written to file by the worker thread. If F10 is pressed later than two minutes into the next game, instead of downloading the last game, the current game is scheduled to be automatically downloaded when it ends. At the end of a game, all clients and the server sign the demo file.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#define MAXMAPNAMELEN 31
|
||||
#define MAXMAPSENDSIZE 65536
|
||||
#define MAXCFGFILESIZE 65536
|
||||
#define MAXDEMOSENDSIZE 10240001
|
||||
#define MAXGZMSGSIZE 65536
|
||||
#define MAXMEDIADOWNLOADFILESIZE 1024000 // hard cap on filesizes (raw and unzipped) - to limit the effect of zip bombs - no nice error messages: just cap
|
||||
#define MAXMODDOWNLOADSIZE 1024000 // hard cap on the filesize of downloaded mod packages - to keep stuff reasonable
|
||||
@@ -47,7 +48,7 @@ enum
|
||||
SV_SWITCHNAME, SV_SWITCHSKIN, SV_SWITCHTEAM,
|
||||
SV_CLIENT,
|
||||
SV_EXTENSION,
|
||||
SV_MAPIDENT, SV_HUDEXTRAS, SV_POINTS,
|
||||
SV_MAPIDENT, SV_HUDEXTRAS, SV_POINTS, SV_DEMOCHECKSUM, SV_DEMOSIGNATURE,
|
||||
SV_NUM
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user