Matchmaking fails for two players try to join at the same time.
Two stranger players click ready at the same time fails to join each other in a same room.
- Ready button click
- Establish connection with photon
- Join default lobby
- Try to JoinRandomRoom
- On JoinRandomRoomFail
- Create a new room
- No player joins your room for 20 seconds, leave a room and match starts against AI
We have noticed that this flow is not working well if both players are
- In same physical space and click ready at the same time
- At distance, and a player with low latency clicks ready 1-2 seconds after a player with high latency
According debug logs we have understood that, all photon network connection/events in the flow happen at the same time for both player, leads to no match making.
We have a new game with a very low CCU. We are looking for a flexible solution to which goes well with our 1 button click matchmaking. Any Suggestions ?