-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matching: Heavily refactor our dive-in code (#413)
This PR makes the following changes - Don't match players into rooms which won't fit them - Don't create 3 copies of the room list worst-case. This is just a small optimization - Select rooms with a weighted distribution, instead of a uniform distribution. This makes "better" rooms (e.g. higher mood) much more likely to be picked. - Return a proper 404 status code when no rooms are found. - Dont try to filter by level if the level id is 0 (this is a current bug, since the game very often sends level id of 0)
- Loading branch information
Showing
2 changed files
with
63 additions
and
22 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