CUModSquad / Camelot-Unchained

UI repository for Camelot Unchained, a tri-realm RvR MMORPG.
Mozilla Public License 2.0
7 stars 25 forks source link

Scenario Join/Leave improvements #280

Closed Mehuge closed 5 years ago

Mehuge commented 5 years ago

Joining/Leaving improvements to feedback and responsiveness.

Attempt to improve the responsiveness of joining/leaving scenario queues. The time taken to join a queue from the point of sending the request to join varies, can be longer than two seconds. However, the UI waits for the next poll interval to update, which could be 10 seconds away.

When joining/leaving a queue, wait 2 seconds the poll for new data (we effectively bring the poll tick forward to now + 2 seconds). This allows enough time (in most cases) for the player to have joined the queue, but not too long that it seems to be stuck.

Added immediate feedback to the Find Match / Leave Queue buttons, they now say 'Joining...' or 'Leaving...' whilst the join/leave request is pending. This gives immediate feedback that it is at least trying to join/leave the queue.

Eventually, subscription based notifications (has-joined-queue) would help make the user interface feel more responsive.