Skip to content

Queue display 'syncing' state#54

Closed
Maironire wants to merge 3 commits intodecentraland:mainfrom
Maironire:main
Closed

Queue display 'syncing' state#54
Maironire wants to merge 3 commits intodecentraland:mainfrom
Maironire:main

Conversation

@Maironire
Copy link
Copy Markdown
Contributor

This proposed change for queue display adds new state, which is shown when player requested queue enter, but he is not yet in sync. It aimed to replace current StartGameButtonCheck solution mainly for one reason - better user experience. Synchronizing often take dozens of seconds, or even a few minutes; leaving player alone with a disabled button could be frustrating and confusing, whereas explicitly showing him what is going on should be more comfortable experience.

Implementation details: it's quite simple, I move addPlayer logic to the internalPlayerSystem and set newly introduced addPlayerRequested flag instead. This flag is then used to actually add a player to the queue in the system when sync is achieved (the condition is exactly same as in current solution), and also it's used in queue display to show "Queue is syncing" message. If a player leaves scene before he was added, the flag is reset. As a side effect, it adds a small delay between button press and entering queue (1.25 sec at worst), but I guess it could be treated negligible.

2024-10-25.23-17-21.mp4

@Pejosonic Pejosonic closed this Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants