forked from googleforgames/agones
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Counters & Lists: Consolidate
priorities
sorting
Doing work on googleforgames#3649, realised the `priorities` sorting implementation between a `GameServerAllocation` and `Fleet/GameServerSet` was different. Once used available capacity, and the latter used current capacity. To make things simpler, both from an implementation point of view, and documentation and user understanding, this PR consolidates everything into using _available capacity_ across the board. This also includes: * Some refactoring to consolidate Counter and List priority sorting logic as much as possible. * Fixes a bug in `Packed` GameServerSet scale down logic. * Fixes for tests since logic changed. Additional context: googleforgames#3649 (comment)
- Loading branch information
1 parent
e9af555
commit 6e1c648
Showing
6 changed files
with
116 additions
and
231 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
Oops, something went wrong.