- Improve snapshot rate and data rate control
- Make server send packet fragments and queued packets when server is idle - Voip protocol detection is tied to com_protocol making past-end-of-message reading unncessary - Use Hunk_AllocateTempMemory() for buffering VOIP packets and fix buffering scheme that ryan hates so much - Disable packet scrambling for new protocol as it is useless now - Get rid of the old packet scrambling functions predating latest point release - Use Hunk_AllocateTempMemory() for netchan packet queue to fix memory leak when client gets disconnected with packets in the queue - Use Hunk_AllocateTempMemory() for download blocks to fix memory leak when client gets disconnected with download blocks in the queue - Fix SV_RateMsec to account for udp/udp6 packet lengths
This commit is contained in:
1 parent
a844c94af1
commit
ac30d86db0
15 files changed
+345
-356
No files matched your search
@@ -554,7 +554,7 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
|
||||
client->gentity = ent;
|
||||
|
||||
client->deltaMessage = -1;
|
||||
client->nextSnapshotTime = svs.time; // generate a snapshot immediately
|
||||
client->lastSnapshotTime = 0; // generate a snapshot immediately
|
||||
|
||||
VM_Call( gvm, GAME_CLIENT_BEGIN, i );
|
||||
}
|
||||
@@ -723,7 +723,7 @@ void SV_FinalMessage( char *message ) {
|
||||
SV_SendServerCommand( cl, "disconnect \"%s\"", message );
|
||||
}
|
||||
// force a snapshot to be sent
|
||||
cl->nextSnapshotTime = -1;
|
||||
cl->lastSnapshotTime = 0;
|
||||
SV_SendClientSnapshot( cl );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user