spring: develop 5ee58d95 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
tvo | tvo | develop | 2007-07-14 16:48:34 | develop 267d4360 |
Changeset | * Added config parameter MaximumTransmissionUnit. This can be used to control the maximum UDP packet size Spring uses. The default is 512, which should keep all UDP packets below the required minimum MTU of 576 bytes (512 payload). If the hypothese that many player drops are because of too big UDP packets is correct, then this may solve it. * Refactored CGame/CNetProtocol (was needed for MaximumTransmissionUnit): - Moved read ahead loop to CNetProtocol, so CNetProtocol can make sure GetData() only returns complete net messages (and keep incomplete message around in fragbuf to return next GetData() call if the other half of the message finally arrived.) - Split read ahead function into two functions, one with the loop and one with the switch to compute message size. * Fixed crash bug in glBallisticCircle(). * Removed unused outbuf from CGameServer. * Made CGame::que a local variable in CGame::ClientReadNet(). * SDL_GetTicks() returns 32 bit integer, so no point using 64 bit vars (should be fixed on more places) * Applied patch by Auswaschbar: - removes some unused code - increases performance (factored out buffer with ready data) - and removes the filtering of NETMSG_HELLO in the connections, because it was a bad idea git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@3927 37977431-3df6-0310-b722-df95706aa16b |
|||
mod - rts/Game/Game.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/Game.h | [ Diff ] [ File ] | |||
mod - rts/Game/GameServer.h | [ Diff ] [ File ] | |||
mod - rts/Game/GameSetup.cpp | [ Diff ] [ File ] | |||
mod - rts/Game/PreGame.cpp | [ Diff ] [ File ] | |||
mod - rts/Rendering/GL/glExtra.cpp | [ Diff ] [ File ] | |||
mod - rts/System/LocalConnection.cpp | [ Diff ] [ File ] | |||
mod - rts/System/Net.cpp | [ Diff ] [ File ] | |||
mod - rts/System/Net.h | [ Diff ] [ File ] | |||
mod - rts/System/NetProtocol.cpp | [ Diff ] [ File ] | |||
mod - rts/System/NetProtocol.h | [ Diff ] [ File ] | |||
mod - rts/System/RemoteConnection.cpp | [ Diff ] [ File ] | |||
mod - rts/System/RemoteConnection.h | [ Diff ] [ File ] |