-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: reduce bandwidth needed to serve clients the serverlist (#25)
Game Coordinator protocol 4 allows us to send the client a table of NewGRFs, and after that use an index into that table for each server. This heavily reduces the size of the full serverlist, from ~60KB to ~20KB. Additionally, we now also send the name of the NewGRF to the client. In case the client doesn't have the NewGRF yet, it can now show the name of the NewGRF instead of the grfid or md5sum. Further more, this reduces the load on redis, as we only update NewGRFs when there is something to update, instead of every 30 seconds. NewGRFs in multiplayer games can only change when starting a newgame, and never during a game.
- Loading branch information
Showing
4 changed files
with
198 additions
and
17 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