-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Make server shutdown cleaner * Load leaderboard data from database * Generalize rating creation based on existing ratings * Make test complete faster * Reimplement rating init to detect cycles, and stop checking legacy tables Leaderboards can now have arbitrary initializers and initialization should happen as expected. Ratings are initialized recursively until either the current rating has no initializer, or a cycle is detected. Any ratings that are implicitly created during this process are marked as transient and will be recomputed whenever they are queried. This ensures we are always using the latest version of the initializer rating when the first rating for a new leaderboard is saved. For instance if tmm_2v2 is initialized from global, and a player new to the matchmaker queues for 2v2, their 2v2 rating will be initialized based on their global rating, and marked as transient. If the player then cancels the queue and plays a bunch of global games (changing their global rating), when they go to queue for 2v2 again, their 2v2 rating will be reinitialized based on the updated global rating (instead of using the cached version). Legacy rating tables were migrated into the new leaderboard_rating table in database migration v98. Therefore we can delete the code that checks those legacy tables. * Mark explicit initialization of global and ladder as deprecated * Fix deviation propagation for initialization chains Deviation will now only be increased once when initializing a long chain of ratings Co-authored-by: BlackYps <[email protected]>
- Loading branch information
Showing
16 changed files
with
471 additions
and
217 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
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
Oops, something went wrong.