Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MP: Implement new policies for snaps and rate for servers
This patch adds 4 new cvars: sv_snapsPolicy 0-2 sv_ratePolicy 1 or 2 sv_clientRate <value> sv_minRate <value> sv_snapsPolicy 1 - New Default will enforce all connected clients' snaps to be equal to sv_fps, their local cvar setting in the userinfo is ignored. sv_snapsPolicy 2 - Old OpenJK behavior of sv_snapsMin<>sv_snapsMax but not more than sv_fps. sv_snapsPolicy 0 - disable entirely (do not recommend) sv_ratePolicy - 1 New Default - Enforces all client's rate cvars to be ignored and instead uses the value within the sv_clientRate cvar instead. See below for its default values. sv_ratePolicy 2 - Mostly old JKA/OpenJK behaivor - sv_maxRate controlled the maximum value. No rate cvar from client means maxRate now used instead of 3000 in such cases. Hardcap of client rate is 1000 from 100000. (Previously was 1000 to 90000) sv_clientRate - Default 50000 - This is the value which all clients are enforced to use for `rate` with sv_ratePolicy 1. sv_minRate - Default 0 (unlimited - no lower bound) - New lower bound setting for sv_ratePolicy 2. Setting between 1 and 1000 will essentially do nothing because the minimum rate is always 1000 but not recommended. Advised keep to something sane like no lower than 4000 or 5000.
- Loading branch information
Showing
5 changed files
with
156 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6aba690
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice