KeymashGame / game-tracker

Official Bugtracking Repository for all Keyma.sh issues
6 stars 0 forks source link

Queue rewrite #31

Closed CameronCT closed 3 years ago

CameronCT commented 3 years ago

Queue system should get a rewrite as there is some uncommon (but still some) issues with it in regards to players queuing to each other. Some players straight up getting a match without being in the queue, and so on.

Proposal

  1. Steer away from relying on DB calls (this will also save memory and other resources)
  2. Use global variables
  3. Use a global timer to check for matchups
  4. If there is no one in queue, stop the global timer
CameronCT commented 3 years ago

This has been re-written as of right now, and has been tested with 3-4 accounts with simultaneous queuing with pretty good results.